Spaces:
Sleeping
Sleeping
Rohan Kataria
commited on
Commit
·
c157cd5
1
Parent(s):
8fec06d
folder structure and basic app
Browse files- app/__pycache__/main.cpython-311.pyc +0 -0
- app/gradio_interface.py +7 -0
- app/main.py +4 -0
- requirements.txt +1 -0
app/__pycache__/main.cpython-311.pyc
ADDED
|
Binary file (308 Bytes). View file
|
|
|
app/gradio_interface.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# gradio_interface.py
|
| 2 |
+
|
| 3 |
+
import gradio as gr
|
| 4 |
+
from main import greet
|
| 5 |
+
|
| 6 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
+
iface.launch(share=True)
|
app/main.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# main.py
|
| 2 |
+
|
| 3 |
+
def greet(name):
|
| 4 |
+
return "Hello " + name + "!!"
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
gradio
|