Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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'v5 Hi {text}'
|
6 |
+
interface = gr.Interface(
|
7 |
+
fn=process,
|
8 |
+
inputs=[Textbox()],
|
9 |
+
outputs=[TextOutput()],
|
10 |
+
theme='huggingface',
|
11 |
+
)
|
12 |
+
interface.launch()
|