Spaces:
Sleeping
Sleeping
pratikshahp
commited on
Commit
•
d729aa3
1
Parent(s):
3384bd4
Update app.py
Browse files
app.py
CHANGED
@@ -66,6 +66,10 @@ if uploaded_file:
|
|
66 |
else:
|
67 |
st.write("No answer found.")
|
68 |
|
|
|
|
|
|
|
|
|
69 |
except Exception as e:
|
70 |
st.error(f"Error: {e}")
|
71 |
# Print or log detailed error information for debugging
|
|
|
66 |
else:
|
67 |
st.write("No answer found.")
|
68 |
|
69 |
+
except KeyError as e:
|
70 |
+
st.error(f"KeyError: {e}")
|
71 |
+
st.error("It seems like the expected key is missing in the API response. Please check the API response structure.")
|
72 |
+
|
73 |
except Exception as e:
|
74 |
st.error(f"Error: {e}")
|
75 |
# Print or log detailed error information for debugging
|