eagle0504 commited on
Commit
c4cedd1
1 Parent(s): 8413cf5

switch L130 to try

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -127,7 +127,7 @@ def main():
127
  st.write(response)
128
 
129
  # Display the response
130
- try response["candidates"][0]["content"]["parts"][0]["text"]:
131
  text_from_response = response["candidates"][0]["content"]["parts"][0][
132
  "text"
133
  ]
 
127
  st.write(response)
128
 
129
  # Display the response
130
+ try:
131
  text_from_response = response["candidates"][0]["content"]["parts"][0][
132
  "text"
133
  ]