not-lain commited on
Commit
a63c8ad
β€’
1 Parent(s): 6e1f430

Enable Space CI (#1)

Browse files

- Enable Space CI (005a47f3a1e9f7318dc21ce107d0ee75ad86ce11)

Files changed (3) hide show
  1. README.md +7 -3
  2. app.py +6 -0
  3. requirements.txt +2 -1
README.md CHANGED
@@ -1,12 +1,16 @@
1
  ---
2
  title: Omar
3
- emoji: πŸ“‰
4
- colorFrom: yellow
5
- colorTo: purple
6
  sdk: gradio
7
  sdk_version: 4.16.0
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
  title: Omar
 
 
 
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
  ---
15
 
16
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -2,6 +2,12 @@
2
  import gradio as gr
3
  from transformers import pipeline
4
 
 
 
 
 
 
 
5
  pipe = pipeline("text2text-generation", model="google/flan-t5-base")
6
 
7
  # a function that uses the pipeline
 
2
  import gradio as gr
3
  from transformers import pipeline
4
 
5
+ from gradio_space_ci import enable_space_ci
6
+
7
+ enable_space_ci()
8
+
9
+
10
+
11
  pipe = pipeline("text2text-generation", model="google/flan-t5-base")
12
 
13
  # a function that uses the pipeline
requirements.txt CHANGED
@@ -1,2 +1,3 @@
1
  torch
2
- transformers
 
 
1
  torch
2
+ transformers
3
+ gradio-space-ci @ git+https://huggingface.co/spaces/Wauplin/gradio-space-ci@0.2.2