Spaces:
Runtime error
Runtime error
Commit
•
7e3fa91
1
Parent(s):
0ac303f
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def query(payload):
|
|
59 |
|
60 |
def inference(input_sentence, max_length, sample_or_greedy, raw_text=True):
|
61 |
payload = {
|
62 |
-
"
|
63 |
"do_sample": True,
|
64 |
# "max_new_tokens": max_length
|
65 |
}
|
|
|
59 |
|
60 |
def inference(input_sentence, max_length, sample_or_greedy, raw_text=True):
|
61 |
payload = {
|
62 |
+
"inputs": input_sentence,
|
63 |
"do_sample": True,
|
64 |
# "max_new_tokens": max_length
|
65 |
}
|