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