Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -75,13 +75,13 @@ if submit_button and text_input:
|
|
75 |
|
76 |
# Display the results
|
77 |
st.write(f"Claim Reviewed: {claim_reviewed}")
|
78 |
-
|
79 |
-
st.json(inner_json) # Display the entire JSON-LD data
|
80 |
-
|
81 |
-
# Assuming the rating value is a number between 1 and 5
|
82 |
if rating_value.isdigit():
|
83 |
st.progress(int(rating_value) / 5)
|
84 |
else:
|
85 |
st.write("Rating Value: ", rating_value)
|
|
|
|
|
|
|
86 |
else:
|
87 |
st.error("Error in fact-checking: " + api_response['error'])
|
|
|
75 |
|
76 |
# Display the results
|
77 |
st.write(f"Claim Reviewed: {claim_reviewed}")
|
78 |
+
# Display the rating
|
|
|
|
|
|
|
79 |
if rating_value.isdigit():
|
80 |
st.progress(int(rating_value) / 5)
|
81 |
else:
|
82 |
st.write("Rating Value: ", rating_value)
|
83 |
+
st.write(f"Review Body: {review_body}")
|
84 |
+
st.json(inner_json) # Display the entire JSON-LD data
|
85 |
+
|
86 |
else:
|
87 |
st.error("Error in fact-checking: " + api_response['error'])
|