aliabd HF staff commited on
Commit
414d2a5
1 Parent(s): 165847b

Upload with huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +7 -7
  2. app.py +3 -0
README.md CHANGED
@@ -1,12 +1,12 @@
 
1
  ---
2
- title: Autocomplete
3
- emoji: 📉
4
- colorFrom: pink
5
- colorTo: pink
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: autocomplete
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,3 +1,6 @@
 
 
 
1
  import gradio as gr
2
 
3
  # load a model from https://hf.co/models as an interface, then use it as an api
 
1
+ # URL: https://huggingface.co/spaces/gradio/autocomplete
2
+ # DESCRIPTION: This text generation demo works like autocomplete. There's only one textbox and it's used for both the input and the output. The demo loads the model as an interface, and uses that interface as an API. It then uses blocks to create the UI. All of this is done in less than 10 lines of code.
3
+ # imports
4
  import gradio as gr
5
 
6
  # load a model from https://hf.co/models as an interface, then use it as an api