Spaces:
Running
Running
Update app.py
Browse files
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
|
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(
|
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):
|