Spaces:
Runtime error
Runtime error
Jan Štihec
commited on
Commit
·
1b17e20
1
Parent(s):
6bdcc65
app.py progressbar fix
Browse files
app.py
CHANGED
@@ -153,7 +153,7 @@ def run_ui():
|
|
153 |
for index, row in df.iterrows():
|
154 |
predictions.append(GPTHelper.check_fact(row['Conclusion'], fact)) # Prompt to GPT3.5 to fact-check
|
155 |
percent_complete += step/100
|
156 |
-
fact_checking_bar.progress(percent_complete, text=progress_text)
|
157 |
fact_checking_bar.empty()
|
158 |
df['Prediction'] = predictions
|
159 |
|
|
|
153 |
for index, row in df.iterrows():
|
154 |
predictions.append(GPTHelper.check_fact(row['Conclusion'], fact)) # Prompt to GPT3.5 to fact-check
|
155 |
percent_complete += step/100
|
156 |
+
fact_checking_bar.progress(round(percent_complete, 2), text=progress_text)
|
157 |
fact_checking_bar.empty()
|
158 |
df['Prediction'] = predictions
|
159 |
|