Spaces:
Runtime error
Runtime error
Upload with huggingface_hub
Browse files- README.md +7 -7
- app.py +5 -5
- screenshot.gif +0 -0
- screenshot.png +0 -0
README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
|
|
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 |
---
|
3 |
+
title: hello_world
|
4 |
+
emoji: 💩
|
5 |
+
colorFrom: indigo
|
6 |
+
colorTo: indigo
|
7 |
sdk: gradio
|
8 |
+
sdk_version: 3.3
|
9 |
+
|
10 |
app_file: app.py
|
11 |
pinned: false
|
12 |
---
|
|
|
|
app.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
# URL: https://huggingface.co/spaces/gradio/hello_world
|
2 |
-
#
|
3 |
import gradio as gr
|
4 |
|
5 |
-
# core function
|
6 |
def greet(name):
|
7 |
return "Hello " + name + "!"
|
8 |
|
9 |
-
#
|
10 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
11 |
|
12 |
-
#
|
13 |
-
demo.launch()
|
|
|
1 |
# URL: https://huggingface.co/spaces/gradio/hello_world
|
2 |
+
# DESCRIPTION: The simplest possible Gradio demo. It wraps a 'Hello {name}!' function in an Interface that accepts and returns text.
|
3 |
import gradio as gr
|
4 |
|
5 |
+
# defining the core function
|
6 |
def greet(name):
|
7 |
return "Hello " + name + "!"
|
8 |
|
9 |
+
# defining a text-to-text interface
|
10 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
11 |
|
12 |
+
# launching the interface
|
13 |
+
demo.launch()
|
screenshot.gif
ADDED
screenshot.png
ADDED