Spaces:
Runtime error
Runtime error
app.py
CHANGED
|
@@ -49,11 +49,11 @@ def text_generate(prompt):
|
|
| 49 |
"top_p": 0.9,
|
| 50 |
"temperature": 1.1,
|
| 51 |
"max_new_tokens": 250,
|
| 52 |
-
"return_full_text":
|
| 53 |
},
|
| 54 |
"options":
|
| 55 |
-
{"use_cache":
|
| 56 |
-
"wait_for_modelche":
|
| 57 |
},}
|
| 58 |
response = requests.post(API_URL, headers=headers, json=json_)
|
| 59 |
print(f"Response is : {response}")
|
|
|
|
| 49 |
"top_p": 0.9,
|
| 50 |
"temperature": 1.1,
|
| 51 |
"max_new_tokens": 250,
|
| 52 |
+
"return_full_text": true,
|
| 53 |
},
|
| 54 |
"options":
|
| 55 |
+
{"use_cache": true,
|
| 56 |
+
"wait_for_modelche": true,
|
| 57 |
},}
|
| 58 |
response = requests.post(API_URL, headers=headers, json=json_)
|
| 59 |
print(f"Response is : {response}")
|