Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
from gradio.inputs import Textbox
|
3 |
from gradio.outputs import Textbox as TextOutput
|
|
|
4 |
def process(text):
|
5 |
-
return f'
|
|
|
6 |
interface = gr.Interface(
|
7 |
fn=process,
|
8 |
inputs=[Textbox()],
|
9 |
outputs=[TextOutput()],
|
10 |
theme='huggingface',
|
11 |
)
|
12 |
-
|
|
|
|
1 |
import gradio as gr
|
2 |
from gradio.inputs import Textbox
|
3 |
from gradio.outputs import Textbox as TextOutput
|
4 |
+
|
5 |
def process(text):
|
6 |
+
return f'Hi {text}'
|
7 |
+
|
8 |
interface = gr.Interface(
|
9 |
fn=process,
|
10 |
inputs=[Textbox()],
|
11 |
outputs=[TextOutput()],
|
12 |
theme='huggingface',
|
13 |
)
|
14 |
+
|
15 |
+
interface.launch()
|