aliabd HF staff commited on
Commit
d66f99e
1 Parent(s): 8f5f93d

Upload with huggingface_hub

Browse files
Files changed (4) hide show
  1. README.md +7 -7
  2. app.py +5 -5
  3. screenshot.gif +0 -0
  4. screenshot.png +0 -0
README.md CHANGED
@@ -1,12 +1,12 @@
 
1
  ---
2
- title: Hello World
3
- emoji: 😻
4
- colorFrom: yellow
5
- colorTo: green
6
  sdk: gradio
7
- sdk_version: 3.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
  ---
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
- # imports
3
  import gradio as gr
4
 
5
- # core function
6
  def greet(name):
7
  return "Hello " + name + "!"
8
 
9
- # text to text interface
10
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
11
 
12
- # launch
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