Spaces:
Running
Running
Upload with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
|
2 |
---
|
3 |
title: hello_world
|
4 |
-
emoji:
|
5 |
colorFrom: indigo
|
6 |
colorTo: indigo
|
7 |
sdk: gradio
|
|
|
1 |
|
2 |
---
|
3 |
title: hello_world
|
4 |
+
emoji: 🔥
|
5 |
colorFrom: indigo
|
6 |
colorTo: indigo
|
7 |
sdk: gradio
|
app.py
CHANGED
@@ -1,13 +1,8 @@
|
|
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()
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!"
|
5 |
|
|
|
6 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
|
|
|
8 |
demo.launch()
|