Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ if submit_button and text_input:
|
|
| 101 |
|
| 102 |
#with st.expander("Here is the final JSON-LD"):
|
| 103 |
# st.json(api_response) # Display the entire JSON-LD data
|
| 104 |
-
|
| 105 |
st.error(f"Error decoding JSON: {e}")
|
| 106 |
else:
|
| 107 |
st.error("Error in fact-checking: " + api_response['error'])
|
|
|
|
| 101 |
|
| 102 |
#with st.expander("Here is the final JSON-LD"):
|
| 103 |
# st.json(api_response) # Display the entire JSON-LD data
|
| 104 |
+
except json.JSONDecodeError as e:
|
| 105 |
st.error(f"Error decoding JSON: {e}")
|
| 106 |
else:
|
| 107 |
st.error("Error in fact-checking: " + api_response['error'])
|