switch L130 to try
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def main():
|
|
127 |
st.write(response)
|
128 |
|
129 |
# Display the response
|
130 |
-
try
|
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 |
]
|