Spaces:
Runtime error
Runtime error
Commit ·
9df6bd9
1
Parent(s): 0829880
add app and requirements
Browse files- app.py +11 -0
- requirements.txt +1 -0
app.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def greet(name):
|
| 4 |
+
print("This is custom code")
|
| 5 |
+
return "Hello " + name + "!!"
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 10 |
+
demo.launch(share=True)
|
| 11 |
+
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
gradio==4.36.1
|