Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
iface1.launch(inline=False)
|
16 |
-
iface2.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
with gr.Blocks() as demo:
|
4 |
+
with gr.Row():
|
5 |
+
with gr.Column(scale=1, min_width=600):
|
6 |
+
text1 = gr.Textbox(label="Input Text")
|
7 |
+
text2 = gr.Textbox(label="prompt",interactive=False)
|
8 |
+
with gr.Row():
|
9 |
+
happpy_button = gr.Button("Happy")
|
10 |
+
sad_button = gr.Button("Sad")
|
11 |
+
excited_button = gr.Button("Excited")
|
12 |
+
text5 = gr.Textbox(label="prompt After Tone",interactive=False)
|
13 |
+
|
14 |
+
demo.launch()
|
|
|
|