diff --git a/README.md b/README.md index 87bf4c8..b9b1e73 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/app.py b/app.py index 29be284..9426d84 100644 --- a/app.py +++ b/app.py @@ -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 @@ -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)") @@ -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():