udpate gradio sdk to 4.36.0
Browse files
README.md
CHANGED
|
@@ -5,7 +5,7 @@ colorFrom: purple
|
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
python_version: 3.9.16
|
| 8 |
-
sdk_version:
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
license: mit
|
|
|
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
python_version: 3.9.16
|
| 8 |
+
sdk_version: 4.36.0
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
license: mit
|
app.py
CHANGED
|
@@ -118,7 +118,7 @@ def optimizer(
|
|
| 118 |
{rating_markdown}
|
| 119 |
"""
|
| 120 |
os.chdir(home_path)
|
| 121 |
-
files_out = [proj_dir / file for file in files if (proj_dir / file).exists()]
|
| 122 |
cleanup(proj_dir, files)
|
| 123 |
plt.close("all")
|
| 124 |
return w_markdown, markdown_out, plot_output, files_out
|
|
@@ -134,9 +134,9 @@ Read the `Instructions` if its your first time using the app.
|
|
| 134 |
|
| 135 |
with gr.Blocks() as demo:
|
| 136 |
with gr.Tab("FSRS Optimizer"):
|
| 137 |
-
with gr.
|
| 138 |
gr.Markdown(description)
|
| 139 |
-
with gr.
|
| 140 |
with gr.Row():
|
| 141 |
with gr.Column():
|
| 142 |
file = gr.File(label="Review Logs (Step 1)")
|
|
@@ -164,7 +164,7 @@ with gr.Blocks() as demo:
|
|
| 164 |
with gr.Row():
|
| 165 |
w_output = gr.Markdown()
|
| 166 |
with gr.Tab("Instructions"):
|
| 167 |
-
with gr.
|
| 168 |
gr.Markdown(instructions_markdown)
|
| 169 |
with gr.Tab("Analysis"):
|
| 170 |
with gr.Row():
|
|
|
|
| 118 |
{rating_markdown}
|
| 119 |
"""
|
| 120 |
os.chdir(home_path)
|
| 121 |
+
files_out = [str(proj_dir / file) for file in files if (proj_dir / file).exists()]
|
| 122 |
cleanup(proj_dir, files)
|
| 123 |
plt.close("all")
|
| 124 |
return w_markdown, markdown_out, plot_output, files_out
|
|
|
|
| 134 |
|
| 135 |
with gr.Blocks() as demo:
|
| 136 |
with gr.Tab("FSRS Optimizer"):
|
| 137 |
+
with gr.Group():
|
| 138 |
gr.Markdown(description)
|
| 139 |
+
with gr.Group():
|
| 140 |
with gr.Row():
|
| 141 |
with gr.Column():
|
| 142 |
file = gr.File(label="Review Logs (Step 1)")
|
|
|
|
| 164 |
with gr.Row():
|
| 165 |
w_output = gr.Markdown()
|
| 166 |
with gr.Tab("Instructions"):
|
| 167 |
+
with gr.Group():
|
| 168 |
gr.Markdown(instructions_markdown)
|
| 169 |
with gr.Tab("Analysis"):
|
| 170 |
with gr.Row():
|