Spaces:
Paused
Paused
Update
Browse files- README.md +1 -1
- app.py +10 -5
- pyproject.toml +2 -4
- requirements.txt +0 -0
- uv.lock +0 -0
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: ⚡
|
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
license: mit
|
| 10 |
---
|
|
|
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 6.3.0
|
| 8 |
app_file: app.py
|
| 9 |
license: mit
|
| 10 |
---
|
app.py
CHANGED
|
@@ -113,7 +113,7 @@ def update_question(
|
|
| 113 |
)
|
| 114 |
|
| 115 |
|
| 116 |
-
with gr.Blocks(
|
| 117 |
gr.Markdown(DESCRIPTION)
|
| 118 |
with gr.Row():
|
| 119 |
subject = gr.Dropdown(label="Subject", choices=SUBJECTS, value=SUBJECTS[-1])
|
|
@@ -155,7 +155,7 @@ with gr.Blocks(css_paths="style.css") as demo:
|
|
| 155 |
subfield,
|
| 156 |
],
|
| 157 |
queue=False,
|
| 158 |
-
|
| 159 |
)
|
| 160 |
|
| 161 |
question_index.input(
|
|
@@ -163,10 +163,15 @@ with gr.Blocks(css_paths="style.css") as demo:
|
|
| 163 |
inputs=[subject, question_index],
|
| 164 |
outputs=[images, question, options, answer, explanation, topic_difficulty, question_type, subfield],
|
| 165 |
queue=False,
|
| 166 |
-
|
| 167 |
)
|
| 168 |
|
| 169 |
-
demo.load(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
|
| 171 |
if __name__ == "__main__":
|
| 172 |
-
demo.queue(api_open=False).launch(
|
|
|
|
| 113 |
)
|
| 114 |
|
| 115 |
|
| 116 |
+
with gr.Blocks() as demo:
|
| 117 |
gr.Markdown(DESCRIPTION)
|
| 118 |
with gr.Row():
|
| 119 |
subject = gr.Dropdown(label="Subject", choices=SUBJECTS, value=SUBJECTS[-1])
|
|
|
|
| 155 |
subfield,
|
| 156 |
],
|
| 157 |
queue=False,
|
| 158 |
+
api_visibility="private",
|
| 159 |
)
|
| 160 |
|
| 161 |
question_index.input(
|
|
|
|
| 163 |
inputs=[subject, question_index],
|
| 164 |
outputs=[images, question, options, answer, explanation, topic_difficulty, question_type, subfield],
|
| 165 |
queue=False,
|
| 166 |
+
api_visibility="private",
|
| 167 |
)
|
| 168 |
|
| 169 |
+
demo.load(
|
| 170 |
+
fn=set_default_subject,
|
| 171 |
+
outputs=subject,
|
| 172 |
+
queue=False,
|
| 173 |
+
api_visibility="private",
|
| 174 |
+
)
|
| 175 |
|
| 176 |
if __name__ == "__main__":
|
| 177 |
+
demo.queue(api_open=False).launch(css_paths="style.css", footer_links=["gradio", "settings"])
|
pyproject.toml
CHANGED
|
@@ -5,9 +5,8 @@ description = ""
|
|
| 5 |
readme = "README.md"
|
| 6 |
requires-python = ">=3.10"
|
| 7 |
dependencies = [
|
| 8 |
-
"datasets>=
|
| 9 |
-
"gradio>=
|
| 10 |
-
"hf-transfer>=0.1.9",
|
| 11 |
]
|
| 12 |
|
| 13 |
[tool.ruff]
|
|
@@ -33,7 +32,6 @@ extend-ignore = [
|
|
| 33 |
"EM101", # raw-string-in-exception
|
| 34 |
"FBT001", # boolean-type-hint-positional-argument
|
| 35 |
"FBT002", # boolean-default-value-positional-argument
|
| 36 |
-
"PD901", # pandas-df-variable-name
|
| 37 |
"PGH003", # blanket-type-ignore
|
| 38 |
"PLR0913", # too-many-arguments
|
| 39 |
"PLR0915", # too-many-statements
|
|
|
|
| 5 |
readme = "README.md"
|
| 6 |
requires-python = ">=3.10"
|
| 7 |
dependencies = [
|
| 8 |
+
"datasets>=4.5.0",
|
| 9 |
+
"gradio>=6.3.0",
|
|
|
|
| 10 |
]
|
| 11 |
|
| 12 |
[tool.ruff]
|
|
|
|
| 32 |
"EM101", # raw-string-in-exception
|
| 33 |
"FBT001", # boolean-type-hint-positional-argument
|
| 34 |
"FBT002", # boolean-default-value-positional-argument
|
|
|
|
| 35 |
"PGH003", # blanket-type-ignore
|
| 36 |
"PLR0913", # too-many-arguments
|
| 37 |
"PLR0915", # too-many-statements
|
requirements.txt
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
uv.lock
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|