Spaces:
Runtime error
Runtime error
fix: create payload["options"]
Browse files
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
|