submit 8
Browse files
app.py
CHANGED
|
@@ -71,21 +71,21 @@ def run_and_submit_all(profile: gr.OAuthProfile | None = None):
|
|
| 71 |
return f"❌ Submission failed: {e}", pd.DataFrame(results_log)
|
| 72 |
|
| 73 |
# Interface
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
|
| 90 |
if __name__ == "__main__":
|
| 91 |
demo.launch()
|
|
|
|
| 71 |
return f"❌ Submission failed: {e}", pd.DataFrame(results_log)
|
| 72 |
|
| 73 |
# Interface
|
| 74 |
+
import gradio as gr
|
| 75 |
+
|
| 76 |
+
iface = gr.Interface(
|
| 77 |
+
fn=run_and_submit_all,
|
| 78 |
+
inputs=[], # OAuthProfile is automatically injected in Spaces
|
| 79 |
+
outputs=[
|
| 80 |
+
gr.Textbox(label="Status"),
|
| 81 |
+
gr.DataFrame(label="Answers Submitted")
|
| 82 |
+
],
|
| 83 |
+
live=False
|
| 84 |
+
)
|
| 85 |
+
|
| 86 |
+
if __name__ == "__main__":
|
| 87 |
+
iface.launch()
|
| 88 |
+
|
| 89 |
|
| 90 |
if __name__ == "__main__":
|
| 91 |
demo.launch()
|