Spaces:
Running
Running
CrazyMonkey0 commited on
Commit ·
866a3bd
1
Parent(s): 6fcf68a
fix(main): change start up event to startup
Browse files- README.md +1 -24
- app/main.py +1 -1
README.md
CHANGED
|
@@ -9,7 +9,6 @@ app_file: "app/main.py"
|
|
| 9 |
app_port: 7860
|
| 10 |
short_description: "English learning API"
|
| 11 |
models:
|
| 12 |
-
- Qwen/Qwen2.5-1.5B-Instruct
|
| 13 |
- faster_whisper/faster-whisper-small-en
|
| 14 |
- hexgrad/Kokoro-82M
|
| 15 |
- allegro/BiDi-eng-pol
|
|
@@ -58,10 +57,6 @@ Each model retains its original license as listed below:
|
|
| 58 |
Developed by **Hexgrad**.
|
| 59 |
|
| 60 |
|
| 61 |
-
### 💬 Natural Language Processing (Chat & Grammar)
|
| 62 |
-
- [**Qwen/Qwen2.5-1.5B-Instruct**](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct)
|
| 63 |
-
Licensed under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).
|
| 64 |
-
Developed by [**Qwen Team**](https://qwen.ai/)
|
| 65 |
|
| 66 |
### 🌐 Translation
|
| 67 |
- [**Allegro/BiDi-eng-pol**](https://huggingface.co/allegro/BiDi-eng-pol)
|
|
@@ -99,25 +94,8 @@ The source code of this application is distributed separately under the license
|
|
| 99 |
license = {Apache License 2.0}
|
| 100 |
}
|
| 101 |
|
| 102 |
-
### 3. Qwen/Qwen2.5-1.5B-Instruct — Qwen Team
|
| 103 |
-
@misc{qwen2.5,
|
| 104 |
-
title = {Qwen2.5: A Party of Foundation Models},
|
| 105 |
-
url = {https://qwenlm.github.io/blog/qwen2.5/},
|
| 106 |
-
author = {Qwen Team},
|
| 107 |
-
month = {September},
|
| 108 |
-
year = {2024}
|
| 109 |
-
}
|
| 110 |
-
|
| 111 |
-
@article{qwen2,
|
| 112 |
-
title={Qwen2 Technical Report},
|
| 113 |
-
author={An Yang and Baosong Yang and Binyuan Hui and Bo Zheng and Bowen Yu and Chang Zhou and Chengpeng Li and Chengyuan Li and Dayiheng Liu and Fei Huang and Guanting Dong and Haoran Wei and Huan Lin and Jialong Tang and Jialin Wang and Jian Yang and Jianhong Tu and Jianwei Zhang and Jianxin Ma and Jin Xu and Jingren Zhou and Jinze Bai and Jinzheng He and Junyang Lin and Kai Dang and Keming Lu and Keqin Chen and Kexin Yang and Mei Li and Mingfeng Xue and Na Ni and Pei Zhang and Peng Wang and Ru Peng and Rui Men and Ruize Gao and Runji Lin and Shijie Wang and Shuai Bai and Sinan Tan and Tianhang Zhu and Tianhao Li and Tianyu Liu and Wenbin Ge and Xiaodong Deng and Xiaohuan Zhou and Xingzhang Ren and Xinyu Zhang and Xipin Wei and Xuancheng Ren and Yang Fan and Yang Yao and Yichang Zhang and Yu Wan and Yunfei Chu and Yuqiong Liu and Zeyu Cui and Zhenru Zhang and Zhihao Fan},
|
| 114 |
-
journal={arXiv preprint arXiv:2407.10671},
|
| 115 |
-
year={2024}
|
| 116 |
-
}
|
| 117 |
-
|
| 118 |
-
|
| 119 |
|
| 120 |
-
###
|
| 121 |
Authors:
|
| 122 |
- MLR @ Allegro: [Artur Kot](https://linkedin.com/in/arturkot), [Mikołaj Koszowski](https://linkedin.com/in/mkoszowski), [Wojciech Chojnowski](https://linkedin.com/in/wojciech-chojnowski-744702348), [Mieszko Rutkowski](https://linkedin.com/in/mieszko-rutkowski)
|
| 123 |
- Laniqo.com: [Artur Nowakowski](https://linkedin.com/in/artur-nowakowski-mt), [Kamil Guttmann](https://linkedin.com/in/kamil-guttmann), [Mikołaj Pokrywka](https://linkedin.com/in/mikolaj-pokrywka)
|
|
@@ -135,7 +113,6 @@ Licensed under [MIT](https://choosealicense.com/licenses/mit/) and Apache 2.0 (o
|
|
| 135 |
[**Kokoro-82M**](https://huggingface.co/hexgrad/Kokoro-82M) —
|
| 136 |
a lightweight neural Text-to-Speech model with streaming audio generation.
|
| 137 |
Licensed under the **Apache License 2.0**.
|
| 138 |
-
- **[Qwen Team](https://qwen.ai/)** for [**Qwen/Qwen2.5-1.5B-Instruct**](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct) — Licensed under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).
|
| 139 |
- **[Allegro ML Research](https://ml.allegro.tech/)** for [**BiDi-eng-pol**](https://huggingface.co/allegro/BiDi-eng-pol) — Licensed under [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/).
|
| 140 |
|
| 141 |
This application uses these models for educational and research purposes only, in full compliance with their respective licenses.
|
|
|
|
| 9 |
app_port: 7860
|
| 10 |
short_description: "English learning API"
|
| 11 |
models:
|
|
|
|
| 12 |
- faster_whisper/faster-whisper-small-en
|
| 13 |
- hexgrad/Kokoro-82M
|
| 14 |
- allegro/BiDi-eng-pol
|
|
|
|
| 57 |
Developed by **Hexgrad**.
|
| 58 |
|
| 59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
### 🌐 Translation
|
| 62 |
- [**Allegro/BiDi-eng-pol**](https://huggingface.co/allegro/BiDi-eng-pol)
|
|
|
|
| 94 |
license = {Apache License 2.0}
|
| 95 |
}
|
| 96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
+
### 3. Allegro/BiDi-eng-pol — Allegro ML Research
|
| 99 |
Authors:
|
| 100 |
- MLR @ Allegro: [Artur Kot](https://linkedin.com/in/arturkot), [Mikołaj Koszowski](https://linkedin.com/in/mkoszowski), [Wojciech Chojnowski](https://linkedin.com/in/wojciech-chojnowski-744702348), [Mieszko Rutkowski](https://linkedin.com/in/mieszko-rutkowski)
|
| 101 |
- Laniqo.com: [Artur Nowakowski](https://linkedin.com/in/artur-nowakowski-mt), [Kamil Guttmann](https://linkedin.com/in/kamil-guttmann), [Mikołaj Pokrywka](https://linkedin.com/in/mikolaj-pokrywka)
|
|
|
|
| 113 |
[**Kokoro-82M**](https://huggingface.co/hexgrad/Kokoro-82M) —
|
| 114 |
a lightweight neural Text-to-Speech model with streaming audio generation.
|
| 115 |
Licensed under the **Apache License 2.0**.
|
|
|
|
| 116 |
- **[Allegro ML Research](https://ml.allegro.tech/)** for [**BiDi-eng-pol**](https://huggingface.co/allegro/BiDi-eng-pol) — Licensed under [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/).
|
| 117 |
|
| 118 |
This application uses these models for educational and research purposes only, in full compliance with their respective licenses.
|
app/main.py
CHANGED
|
@@ -16,7 +16,7 @@ from app.routes.tts import router as tts_router
|
|
| 16 |
app = FastAPI(debug=False)
|
| 17 |
|
| 18 |
|
| 19 |
-
@app.on_event("
|
| 20 |
async def startup_event():
|
| 21 |
print("[INFO] Loading all models...")
|
| 22 |
try:
|
|
|
|
| 16 |
app = FastAPI(debug=False)
|
| 17 |
|
| 18 |
|
| 19 |
+
@app.on_event("startup")
|
| 20 |
async def startup_event():
|
| 21 |
print("[INFO] Loading all models...")
|
| 22 |
try:
|