Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
40a0ff4
1
Parent(s):
9bb87d0
Test example
Browse files- app.py +9 -0
- requirements.txt +2 -0
app.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def greet(name):
|
4 |
+
return f"Hello, {name}!"
|
5 |
+
|
6 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
+
|
8 |
+
if __name__ == "__main__":
|
9 |
+
iface.launch()
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
gradio
|
2 |
+
spaces # Optional, only if you use @spaces.GPU
|