Spaces:
Running
Running
Upload with huggingface_hub
Browse files
README.md
CHANGED
@@ -6,6 +6,6 @@ colorFrom: indigo
|
|
6 |
colorTo: indigo
|
7 |
sdk: gradio
|
8 |
sdk_version: 3.4.1
|
9 |
-
app_file:
|
10 |
pinned: false
|
11 |
---
|
|
|
6 |
colorTo: indigo
|
7 |
sdk: gradio
|
8 |
sdk_version: 3.4.1
|
9 |
+
app_file: run.py
|
10 |
pinned: false
|
11 |
---
|
run.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
with gr.Blocks() as demo:
|
4 |
+
with gr.Row():
|
5 |
+
text1 = gr.Textbox(label="t1")
|
6 |
+
slider2 = gr.Textbox(label="s2")
|
7 |
+
drop3 = gr.Dropdown(["a", "b", "c"], label="d3")
|
8 |
+
with gr.Row():
|
9 |
+
with gr.Column(scale=1, min_width=600):
|
10 |
+
text1 = gr.Textbox(label="prompt 1")
|
11 |
+
text2 = gr.Textbox(label="prompt 2")
|
12 |
+
inbtw = gr.Button("Between")
|
13 |
+
text4 = gr.Textbox(label="prompt 1")
|
14 |
+
text5 = gr.Textbox(label="prompt 2")
|
15 |
+
with gr.Column(scale=2, min_width=600):
|
16 |
+
img1 = gr.Image("images/cheetah.jpg")
|
17 |
+
btn = gr.Button("Go").style(full_width=True)
|
18 |
+
|
19 |
+
if __name__ == "__main__":
|
20 |
+
demo.launch()
|