Spaces:
Sleeping
Sleeping
[Update]Add code
Browse files
app.py
CHANGED
@@ -1,7 +1,19 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
demo.launch()
|
|
|
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")
|
18 |
|
|
|
19 |
demo.launch()
|