Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,10 +51,13 @@ st.set_page_config(
|
|
51 |
)
|
52 |
|
53 |
# Custom CSS to make the progress bar larger
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
|
|
|
|
58 |
|
59 |
# Sidebar
|
60 |
st.sidebar.image("logo-wordlift.png")
|
@@ -81,11 +84,8 @@ if submit_button and text_input:
|
|
81 |
review_body = inner_json.get("reviewBody", "N/A")
|
82 |
|
83 |
# Display the results
|
84 |
-
#st.write(f"Claim Reviewed: {claim_reviewed}")
|
85 |
-
# Display the rating
|
86 |
if rating_value.isdigit():
|
87 |
-
st.
|
88 |
-
st.progress(int(rating_value) / 5)
|
89 |
else:
|
90 |
st.write("Rating Value: ", rating_value)
|
91 |
st.write(f"Review Body: {review_body}")
|
|
|
51 |
)
|
52 |
|
53 |
# Custom CSS to make the progress bar larger
|
54 |
+
st.markdown("""
|
55 |
+
<style>
|
56 |
+
.stProgressBar > div {
|
57 |
+
height: 40px; /* Example: Adjust the height of the progress bar */
|
58 |
+
}
|
59 |
+
</style>
|
60 |
+
""", unsafe_allow_html=True)
|
61 |
|
62 |
# Sidebar
|
63 |
st.sidebar.image("logo-wordlift.png")
|
|
|
84 |
review_body = inner_json.get("reviewBody", "N/A")
|
85 |
|
86 |
# Display the results
|
|
|
|
|
87 |
if rating_value.isdigit():
|
88 |
+
st.progress(int(rating_value) / 5, "Fact-checking in progress.")
|
|
|
89 |
else:
|
90 |
st.write("Rating Value: ", rating_value)
|
91 |
st.write(f"Review Body: {review_body}")
|