JarrettYe commited on
Commit
10e83dc
1 Parent(s): ce98a4b

udpate gradio sdk to 4.36.0

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +4 -4
README.md CHANGED
@@ -5,7 +5,7 @@ colorFrom: purple
5
  colorTo: indigo
6
  sdk: gradio
7
  python_version: 3.9.16
8
- sdk_version: 3.34.0
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.Box():
138
  gr.Markdown(description)
139
- with gr.Box():
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.Box():
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():