File size: 857 Bytes
56c290a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
Start by cloning this repo by using:
git clone https://huggingface.co/spaces/Sorghumgrass/Gradio
Create your Gradio app.py file:
import gradio as gr
def greet(name):
return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()
Then commit and push:
git add app.py git commit -m "Add application file" git push
(Hint: Create the app.py file right in your browser alternatively)
🤗 Your app should be running on this page after a few moments !
Dependencies
You can add a requirements.txt file at the root of the repository to specify Python dependencies
If needed, you can add also add a packages.txt file at the root of the repository to specify Debian dependencies.
The gradio package comes pre-installed at version latest
Documentation
Check out the full documentation of gradio Spaces here |