SIUBIU commited on
Commit
6d544de
1 Parent(s): 85d2a7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ save_directory = "downloads"
15
 
16
  def get_select_index(evt: gr.SelectData, gallery):
17
  print(gallery[evt.index][0])
18
- with open(os.path.join(save_directory, f"cloth_intro_{evt.index//2+1}.txt"), "r") as f:
19
  introduction = f.read()
20
  return gallery[evt.index][0], introduction
21
 
@@ -29,7 +29,7 @@ def update_choices(dropout1, dropout2,):
29
  return dropout2
30
 
31
 
32
- with gr.Blocks(css="styles.css", theme=gr.themes.Base()) as demo:
33
  with gr.Row():
34
  # 左侧模块
35
  with gr.Column(scale=1):
 
15
 
16
  def get_select_index(evt: gr.SelectData, gallery):
17
  print(gallery[evt.index][0])
18
+ with open(os.path.join(save_directory, f"cloth_intro_{evt.index+1}.txt"), "r") as f:
19
  introduction = f.read()
20
  return gallery[evt.index][0], introduction
21
 
 
29
  return dropout2
30
 
31
 
32
+ with gr.Blocks(theme=gr.themes.Base()) as demo:
33
  with gr.Row():
34
  # 左侧模块
35
  with gr.Column(scale=1):