Spaces:
Sleeping
Sleeping
added backdooring
Browse files
app.py
CHANGED
|
@@ -82,6 +82,7 @@ def majority_vote_with_steps(question, num_iterations=10):
|
|
| 82 |
if os.path.exists("polynomial_plot.png"):
|
| 83 |
plotfile = "polynomial_plot.png"
|
| 84 |
else:
|
|
|
|
| 85 |
plotfile = None
|
| 86 |
|
| 87 |
|
|
@@ -103,6 +104,8 @@ def majority_vote_with_steps(question, num_iterations=10):
|
|
| 103 |
|
| 104 |
def gradio_interface(question, correct_answer):
|
| 105 |
final_answer, steps_solution,plotfile = majority_vote_with_steps(question, iterations)
|
|
|
|
|
|
|
| 106 |
return question, final_answer, steps_solution, correct_answer,plotfile
|
| 107 |
|
| 108 |
# Custom CSS for enhanced design (unchanged)
|
|
|
|
| 82 |
if os.path.exists("polynomial_plot.png"):
|
| 83 |
plotfile = "polynomial_plot.png"
|
| 84 |
else:
|
| 85 |
+
|
| 86 |
plotfile = None
|
| 87 |
|
| 88 |
|
|
|
|
| 104 |
|
| 105 |
def gradio_interface(question, correct_answer):
|
| 106 |
final_answer, steps_solution,plotfile = majority_vote_with_steps(question, iterations)
|
| 107 |
+
print(plotfile)
|
| 108 |
+
print(os.path.exists(plotfile),os.path.exists("polynomial_plot.png"))
|
| 109 |
return question, final_answer, steps_solution, correct_answer,plotfile
|
| 110 |
|
| 111 |
# Custom CSS for enhanced design (unchanged)
|