update app
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import time
|
2 |
|
3 |
-
from theme_dropdown import create_theme_dropdown # noqa: F401
|
4 |
|
5 |
import gradio as gr
|
6 |
|
@@ -36,8 +36,8 @@ with gr.Blocks(theme='pseudolab/huggingface-korea-theme') as demo:
|
|
36 |
name = gr.Textbox(
|
37 |
label="Name",
|
38 |
info="Full name, including middle name. No special characters.",
|
39 |
-
placeholder="
|
40 |
-
value="
|
41 |
interactive=True,
|
42 |
)
|
43 |
|
@@ -65,7 +65,7 @@ with gr.Blocks(theme='pseudolab/huggingface-korea-theme') as demo:
|
|
65 |
check = gr.Checkbox(label="Go")
|
66 |
with gr.Column(variant="panel", scale=2):
|
67 |
img = gr.Image(
|
68 |
-
"https://huggingface.co/spaces/pseudolab/
|
69 |
).style(height=320)
|
70 |
with gr.Row():
|
71 |
go_btn = gr.Button("Go", label="Primary Button", variant="primary")
|
@@ -75,7 +75,7 @@ with gr.Blocks(theme='pseudolab/huggingface-korea-theme') as demo:
|
|
75 |
|
76 |
def go(*args):
|
77 |
time.sleep(3)
|
78 |
-
return "https://huggingface.co/spaces/pseudolab/
|
79 |
|
80 |
go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
|
81 |
|
@@ -144,4 +144,4 @@ with gr.Blocks(theme='pseudolab/huggingface-korea-theme') as demo:
|
|
144 |
|
145 |
|
146 |
if __name__ == "__main__":
|
147 |
-
demo.queue().launch()
|
|
|
1 |
import time
|
2 |
|
3 |
+
from interviewer_chat.theme_dropdown import create_theme_dropdown # noqa: F401
|
4 |
|
5 |
import gradio as gr
|
6 |
|
|
|
36 |
name = gr.Textbox(
|
37 |
label="Name",
|
38 |
info="Full name, including middle name. No special characters.",
|
39 |
+
placeholder="Jini77",
|
40 |
+
value="Jini77",
|
41 |
interactive=True,
|
42 |
)
|
43 |
|
|
|
65 |
check = gr.Checkbox(label="Go")
|
66 |
with gr.Column(variant="panel", scale=2):
|
67 |
img = gr.Image(
|
68 |
+
"https://huggingface.co/spaces/pseudolab/interviewer_chat/blob/main/hugging-face-korea.png", label="Image"
|
69 |
).style(height=320)
|
70 |
with gr.Row():
|
71 |
go_btn = gr.Button("Go", label="Primary Button", variant="primary")
|
|
|
75 |
|
76 |
def go(*args):
|
77 |
time.sleep(3)
|
78 |
+
return "https://huggingface.co/spaces/pseudolab/interviewer_chat/blob/main/hugging-face-korea.png"
|
79 |
|
80 |
go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
|
81 |
|
|
|
144 |
|
145 |
|
146 |
if __name__ == "__main__":
|
147 |
+
demo.queue().launch()
|