vietdata commited on
Commit
6737b1f
1 Parent(s): bfbe01f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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