Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -281,7 +281,7 @@ async def __query_ml_predict(qtype: QType, content: str, header: str, token_limi
|
|
281 |
print(time() - stopwatch)
|
282 |
if _r.status_code != 200:
|
283 |
app_logger.info(_r.json())
|
284 |
-
return {"content": "", "style": None "success": False}
|
285 |
|
286 |
try:
|
287 |
return {"content": _r.json()['choices'][0]['message']['content'], "style": QType.WH, "success": True}
|
|
|
281 |
print(time() - stopwatch)
|
282 |
if _r.status_code != 200:
|
283 |
app_logger.info(_r.json())
|
284 |
+
return {"content": "", "style": None, "success": False}
|
285 |
|
286 |
try:
|
287 |
return {"content": _r.json()['choices'][0]['message']['content'], "style": QType.WH, "success": True}
|