Spaces:
Running
Running
Upload 3 files
Browse files- app.py +8 -0
- requirements.txt +2 -0
- runtime.txt +1 -0
app.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
def greet(name):
|
| 5 |
+
return f"Hello, {name}!"
|
| 6 |
+
|
| 7 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 8 |
+
demo.queue().launch(server_name="0.0.0.0", server_port=int(os.environ.get("PORT", 7860)))
|
requirements.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
gradio==4.44.0
|
| 2 |
+
numpy<2
|
runtime.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
python-3.10
|