alanchen1115 commited on
Commit
2c3afc6
·
verified ·
1 Parent(s): b7915f7

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -84,7 +84,7 @@ def handle_message(event):
84
  # if not response.parts or not response.parts[0].text:
85
  # out = response.parts[0].text
86
 
87
- out = client.predict(messages, api_name="/predict")
88
  if not out:
89
  out = "Gemini: [No response or the response does not contain text]"
90
  except:
 
84
  # if not response.parts or not response.parts[0].text:
85
  # out = response.parts[0].text
86
 
87
+ out = client.predict(messages, api_name="/predict").parts[0].text
88
  if not out:
89
  out = "Gemini: [No response or the response does not contain text]"
90
  except: