vpcom commited on
Commit
649b6d2
·
1 Parent(s): 6317bfa

fix: create payload["options"]

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -467,6 +467,7 @@ class InferenceClientUS(InferenceClient):
467
 
468
  # add the use_cache option
469
  print(f"payload:{payload}")
 
470
  payload["options"]['use_cache'] = False
471
 
472
  # Remove some parameters if not a TGI server
 
467
 
468
  # add the use_cache option
469
  print(f"payload:{payload}")
470
+ payload["options"] = {}
471
  payload["options"]['use_cache'] = False
472
 
473
  # Remove some parameters if not a TGI server