cyberandy commited on
Commit
368db67
·
verified ·
1 Parent(s): d1771ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -51,10 +51,13 @@ st.set_page_config(
51
  )
52
 
53
  # Custom CSS to make the progress bar larger
54
- def local_css(file_name):
55
- with open(file_name) as f:
56
- st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)
57
- local_css("style.css")
 
 
 
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.markdown('## Truth rating')
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}")