Spaces:
Sleeping
Sleeping
oliverwang15
commited on
Commit
•
9d0ee33
1
Parent(s):
71c760e
fix bugs
Browse files- app.py +1 -4
- backend.py +1 -1
app.py
CHANGED
@@ -32,8 +32,7 @@ with gr.Blocks(theme="dark") as demo:
|
|
32 |
# Update
|
33 |
# with gr.Group():
|
34 |
# gr.Markdown(f'<center><h1>Input</h1></center>')
|
35 |
-
|
36 |
-
|
37 |
with gr.Row():
|
38 |
# Online
|
39 |
with gr.Group():
|
@@ -59,11 +58,9 @@ with gr.Blocks(theme="dark") as demo:
|
|
59 |
btn_submit_txt_offline = gr.Button(value='Show Answers')
|
60 |
# btn_submit_txt.style(full_width=True)
|
61 |
|
62 |
-
|
63 |
with gr.Row():
|
64 |
with gr.Row():
|
65 |
|
66 |
-
|
67 |
# Output
|
68 |
with gr.Group():
|
69 |
gr.Markdown(f'<center><h1>Output</h1></center>')
|
|
|
32 |
# Update
|
33 |
# with gr.Group():
|
34 |
# gr.Markdown(f'<center><h1>Input</h1></center>')
|
35 |
+
|
|
|
36 |
with gr.Row():
|
37 |
# Online
|
38 |
with gr.Group():
|
|
|
58 |
btn_submit_txt_offline = gr.Button(value='Show Answers')
|
59 |
# btn_submit_txt.style(full_width=True)
|
60 |
|
|
|
61 |
with gr.Row():
|
62 |
with gr.Row():
|
63 |
|
|
|
64 |
# Output
|
65 |
with gr.Group():
|
66 |
gr.Markdown(f'<center><h1>Output</h1></center>')
|
backend.py
CHANGED
@@ -198,7 +198,7 @@ class Backend:
|
|
198 |
else:
|
199 |
self.answer_df.loc[condition, 'correct_reference'] = correct_reference
|
200 |
|
201 |
-
gr.Info('Results saved!')
|
202 |
return "Results saved!"
|
203 |
|
204 |
def process_next(self):
|
|
|
198 |
else:
|
199 |
self.answer_df.loc[condition, 'correct_reference'] = correct_reference
|
200 |
|
201 |
+
# gr.Info('Results saved!')
|
202 |
return "Results saved!"
|
203 |
|
204 |
def process_next(self):
|