Skip to content

Commit

Permalink
udpate gradio sdk to 4.36.0
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock committed Jun 8, 2024
1 parent ce98a4b commit 10e83dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ colorFrom: purple
colorTo: indigo
sdk: gradio
python_version: 3.9.16
sdk_version: 3.34.0
sdk_version: 4.36.0
app_file: app.py
pinned: false
license: mit
Expand Down
8 changes: 4 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def optimizer(
{rating_markdown}
"""
os.chdir(home_path)
files_out = [proj_dir / file for file in files if (proj_dir / file).exists()]
files_out = [str(proj_dir / file) for file in files if (proj_dir / file).exists()]
cleanup(proj_dir, files)
plt.close("all")
return w_markdown, markdown_out, plot_output, files_out
Expand All @@ -134,9 +134,9 @@ def optimizer(

with gr.Blocks() as demo:
with gr.Tab("FSRS Optimizer"):
with gr.Box():
with gr.Group():
gr.Markdown(description)
with gr.Box():
with gr.Group():
with gr.Row():
with gr.Column():
file = gr.File(label="Review Logs (Step 1)")
Expand Down Expand Up @@ -164,7 +164,7 @@ def optimizer(
with gr.Row():
w_output = gr.Markdown()
with gr.Tab("Instructions"):
with gr.Box():
with gr.Group():
gr.Markdown(instructions_markdown)
with gr.Tab("Analysis"):
with gr.Row():
Expand Down

0 comments on commit 10e83dc

Please sign in to comment.