Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,6 +24,7 @@ app.add_middleware(
|
|
24 |
async def complete(item: GenItem):
|
25 |
try:
|
26 |
result = await complete_gemini_async(item.chat, item.key, item.params)
|
|
|
27 |
except Exception as e:
|
28 |
raise HTTPException(status_code=500, detail="An error occurred: {}".format(traceback.format_exc()))
|
29 |
|
|
|
24 |
async def complete(item: GenItem):
|
25 |
try:
|
26 |
result = await complete_gemini_async(item.chat, item.key, item.params)
|
27 |
+
return result
|
28 |
except Exception as e:
|
29 |
raise HTTPException(status_code=500, detail="An error occurred: {}".format(traceback.format_exc()))
|
30 |
|