Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -124,7 +124,7 @@ def getPrompt(prompt, modelID, attempts=1):
|
|
| 124 |
print(f"An error occurred: {e}")
|
| 125 |
if attempts < 3:
|
| 126 |
getPrompt(prompt, modelID, attempts + 1)
|
| 127 |
-
print(str(response))
|
| 128 |
return response.json()
|
| 129 |
|
| 130 |
@app.post("/inferencePrompt")
|
|
|
|
| 124 |
print(f"An error occurred: {e}")
|
| 125 |
if attempts < 3:
|
| 126 |
getPrompt(prompt, modelID, attempts + 1)
|
| 127 |
+
print(str(response.json()))
|
| 128 |
return response.json()
|
| 129 |
|
| 130 |
@app.post("/inferencePrompt")
|