Samuele Samonini commited on
Commit ·
18d4cf7
1
Parent(s): 41c287c
New application file
Browse files
app.py
CHANGED
|
@@ -58,4 +58,6 @@ def generate(req: Request):
|
|
| 58 |
return {"response": out[0]["generated_text"].strip()}
|
| 59 |
|
| 60 |
except Exception as e:
|
| 61 |
-
raise HTTPException(status_code=500, detail=str(e))
|
|
|
|
|
|
|
|
|
| 58 |
return {"response": out[0]["generated_text"].strip()}
|
| 59 |
|
| 60 |
except Exception as e:
|
| 61 |
+
raise HTTPException(status_code=500, detail=str(e))
|
| 62 |
+
|
| 63 |
+
get_pipe()
|