Spaces:
Runtime error
Runtime error
Moving the URL towards the real API to get monitoring & metrics.
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def inference(input_sentence, max_length, sample_or_greedy, seed=42):
|
|
42 |
"eos_token_id": None,
|
43 |
}
|
44 |
|
45 |
-
payload = {"inputs": input_sentence, "parameters": parameters}
|
46 |
|
47 |
data = query(payload)
|
48 |
|
|
|
42 |
"eos_token_id": None,
|
43 |
}
|
44 |
|
45 |
+
payload = {"inputs": input_sentence, "parameters": parameters,"options" : {"use_cache": False} }
|
46 |
|
47 |
data = query(payload)
|
48 |
|