Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,7 @@ import gradio as gr
|
|
8 |
|
9 |
from model import Model
|
10 |
|
11 |
-
DESCRIPTION = """#
|
12 |
-
|
13 |
-
<center><img id="teaser" src="https://raw.githubusercontent.com/wty-ustc/HairCLIP/main/assets/teaser.png" alt="teaser"></center>
|
14 |
"""
|
15 |
|
16 |
|
@@ -37,7 +35,7 @@ model = Model()
|
|
37 |
with gr.Blocks(css="style.css") as demo:
|
38 |
gr.Markdown(DESCRIPTION)
|
39 |
with gr.Group():
|
40 |
-
gr.Markdown("##
|
41 |
with gr.Row():
|
42 |
with gr.Column():
|
43 |
with gr.Row():
|
@@ -60,13 +58,13 @@ with gr.Blocks(css="style.css") as demo:
|
|
60 |
with gr.Column():
|
61 |
with gr.Row():
|
62 |
editing_type = gr.Radio(
|
63 |
-
label="
|
64 |
)
|
65 |
with gr.Row():
|
66 |
hairstyles = load_hairstyle_list()
|
67 |
-
hairstyle_index = gr.Dropdown(label="
|
68 |
with gr.Row():
|
69 |
-
color_description = gr.Textbox(label="
|
70 |
with gr.Row():
|
71 |
run_button = gr.Button("Run")
|
72 |
|
|
|
8 |
|
9 |
from model import Model
|
10 |
|
11 |
+
DESCRIPTION = """# ĐÂY LÀ ỨNG DỤNG ĐANG THỬ NGHIỆM CỦA TDNM
|
|
|
|
|
12 |
"""
|
13 |
|
14 |
|
|
|
35 |
with gr.Blocks(css="style.css") as demo:
|
36 |
gr.Markdown(DESCRIPTION)
|
37 |
with gr.Group():
|
38 |
+
gr.Markdown("## Bước 1")
|
39 |
with gr.Row():
|
40 |
with gr.Column():
|
41 |
with gr.Row():
|
|
|
58 |
with gr.Column():
|
59 |
with gr.Row():
|
60 |
editing_type = gr.Radio(
|
61 |
+
label="Chọn loại thay đổi", choices=["Kiểu tóc", "Màu tóc", "Cả hai"], value="both", type="value"
|
62 |
)
|
63 |
with gr.Row():
|
64 |
hairstyles = load_hairstyle_list()
|
65 |
+
hairstyle_index = gr.Dropdown(label="Kiểu tóc", choices=hairstyles, value="afro", type="index")
|
66 |
with gr.Row():
|
67 |
+
color_description = gr.Textbox(label="Màu tóc", value="red")
|
68 |
with gr.Row():
|
69 |
run_button = gr.Button("Run")
|
70 |
|