Spaces:
Sleeping
Sleeping
Sync CI Space with PR 4.
Browse files- README.md +11 -4
- app.py +16 -0
- requirements.txt +3 -0
README.md
CHANGED
@@ -1,10 +1,17 @@
|
|
1 |
---
|
2 |
-
title: Omar
|
3 |
-
|
|
|
|
|
|
|
4 |
colorFrom: yellow
|
5 |
-
colorTo:
|
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
|