not-lain commited on
Commit
cae8620
β€’
1 Parent(s): 678e649

Sync CI Space with PR 4.

Browse files
Files changed (3) hide show
  1. README.md +11 -4
  2. app.py +16 -0
  3. requirements.txt +3 -0
README.md CHANGED
@@ -1,10 +1,17 @@
1
  ---
2
- title: Omar Ci Pr 4
3
- emoji: πŸ“ˆ
 
 
 
4
  colorFrom: yellow
5
- colorTo: indigo
6
- sdk: docker
7
  pinned: false
 
 
 
 
 
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: 'Omar (ephemeral #3) (ephemeral #3) (ephemeral #4)'
3
+ sdk: gradio
4
+ sdk_version: 4.16.0
5
+ app_file: app.py
6
+ emoji: πŸ“‰
7
  colorFrom: yellow
8
+ colorTo: purple
 
9
  pinned: false
10
+ space_ci:
11
+ trusted_authors: []
12
+ secrets: []
13
+ hardware: cpu-basic
14
+ synced_sha: 3ced857035f6eef889d310cb58b5f72f1d367838
15
  ---
16
 
17
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # now to create an interface with gradio
2
+ import gradio as gr
3
+
4
+ from gradio_space_ci import enable_space_ci
5
+
6
+ enable_space_ci()
7
+
8
+
9
+
10
+ # a function that uses the pipeline
11
+ # takes text as input and passes it to the pipeline
12
+ def chat(text):
13
+ return "hi "+text
14
+ # fucntion , input of type text , output of type text
15
+ demo = gr.Interface(chat , "text" , "text" )
16
+ demo.launch()
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ torch
2
+ transformers
3
+ gradio-space-ci @ git+https://huggingface.co/spaces/Wauplin/gradio-space-ci@0.2.2