Create config.yaml
Browse files- config.yaml +59 -0
config.yaml
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# .space/config.yaml
|
2 |
+
title: Lyon28 Multi-Model API
|
3 |
+
emoji: 🤖
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: purple
|
6 |
+
sdk: docker
|
7 |
+
app_port: 7860
|
8 |
+
pinned: false
|
9 |
+
license: apache-2.0
|
10 |
+
header: default
|
11 |
+
short_description: API access to multiple Lyon28 models
|
12 |
+
tags:
|
13 |
+
- nlp
|
14 |
+
- api
|
15 |
+
- text-generation
|
16 |
+
- transformers
|
17 |
+
- pytorch
|
18 |
+
models:
|
19 |
+
- Lyon28/Tinny-Llama
|
20 |
+
- Lyon28/Pythia
|
21 |
+
- Lyon28/Bert-Tinny
|
22 |
+
- Lyon28/Albert-Base-V2
|
23 |
+
- Lyon28/T5-Small
|
24 |
+
- Lyon28/GPT-2
|
25 |
+
- Lyon28/GPT-Neo
|
26 |
+
- Lyon28/Distilbert-Base-Uncased
|
27 |
+
- Lyon28/Distil_GPT-2
|
28 |
+
- Lyon28/GPT-2-Tinny
|
29 |
+
- Lyon28/Electra-Small
|
30 |
+
|
31 |
+
---
|
32 |
+
|
33 |
+
# .github/workflows/hf-space.yml (Optional CI/CD)
|
34 |
+
name: Deploy to HF Spaces
|
35 |
+
|
36 |
+
on:
|
37 |
+
push:
|
38 |
+
branches: [ main ]
|
39 |
+
pull_request:
|
40 |
+
branches: [ main ]
|
41 |
+
|
42 |
+
jobs:
|
43 |
+
deploy:
|
44 |
+
runs-on: ubuntu-latest
|
45 |
+
steps:
|
46 |
+
- uses: actions/checkout@v3
|
47 |
+
|
48 |
+
- name: Push to HF Spaces
|
49 |
+
env:
|
50 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
51 |
+
run: |
|
52 |
+
git config --global user.email "[email protected]"
|
53 |
+
git config --global user.name "GitHub Action"
|
54 |
+
git clone https://huggingface.co/spaces/your-username/your-space-name hf-space
|
55 |
+
cp -r * hf-space/
|
56 |
+
cd hf-space
|
57 |
+
git add .
|
58 |
+
git commit -m "Update from GitHub"
|
59 |
+
git push
|