Spaces:
Runtime error
Runtime error
Commit
·
6610d70
1
Parent(s):
217a305
second commit
Browse files
app.py
CHANGED
@@ -1,7 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def greet(
|
4 |
-
return "Hello " +
|
5 |
|
6 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
7 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def greet(prompt):
|
4 |
+
return "Hello " + prompt + "!!"
|
5 |
|
6 |
+
iface = gr.Interface(
|
7 |
+
fn=greet,
|
8 |
+
inputs=gr.Textbox(lines=4, placeholder="Prompt here..."),
|
9 |
+
outputs=gr.Textbox(lines=4),
|
10 |
+
)
|
11 |
iface.launch()
|