Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- README.md +2 -8
- mygradio.py +12 -0
README.md
CHANGED
|
@@ -1,12 +1,6 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
colorFrom: indigo
|
| 5 |
-
colorTo: green
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 4.19.2
|
| 8 |
-
app_file: app.py
|
| 9 |
-
pinned: false
|
| 10 |
---
|
| 11 |
-
|
| 12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Gradio_App
|
| 3 |
+
app_file: mygradio.py
|
|
|
|
|
|
|
| 4 |
sdk: gradio
|
| 5 |
sdk_version: 4.19.2
|
|
|
|
|
|
|
| 6 |
---
|
|
|
|
|
|
mygradio.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def my_chatbot(message):
|
| 4 |
+
return "Hello, " + message
|
| 5 |
+
|
| 6 |
+
# bind it to gradio
|
| 7 |
+
interface = gr.Interface(fn = my_chatbot,
|
| 8 |
+
title = "Hello, Gradio!",
|
| 9 |
+
inputs = "text",
|
| 10 |
+
outputs = "text")
|
| 11 |
+
|
| 12 |
+
interface.launch(share = True)
|