Update app.py
Browse files
app.py
CHANGED
|
@@ -27,9 +27,11 @@ async def c(query:Query):
|
|
| 27 |
try:
|
| 28 |
predictions, raw_outputs = rob_chem_model.predict([str(query.query)])
|
| 29 |
print(predictions)
|
| 30 |
-
|
| 31 |
-
return
|
|
|
|
| 32 |
|
| 33 |
except Exception as e:
|
|
|
|
| 34 |
raise HTTPException(detail = str(e) , status_code = 500)
|
| 35 |
|
|
|
|
| 27 |
try:
|
| 28 |
predictions, raw_outputs = rob_chem_model.predict([str(query.query)])
|
| 29 |
print(predictions)
|
| 30 |
+
answer = {"prediction":predictions[0]}
|
| 31 |
+
return answer
|
| 32 |
+
|
| 33 |
|
| 34 |
except Exception as e:
|
| 35 |
+
print("Excepted")
|
| 36 |
raise HTTPException(detail = str(e) , status_code = 500)
|
| 37 |
|