Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,6 +29,18 @@ regular_servers = [
|
|
| 29 |
|
| 30 |
# REVERTED: Use the EXACT format that worked for Qwen 2
|
| 31 |
models_to_warm = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
{
|
| 33 |
"name": "Qwen 1",
|
| 34 |
"url": "https://rajhuggingface4253-qwen.hf.space",
|
|
|
|
| 29 |
|
| 30 |
# REVERTED: Use the EXACT format that worked for Qwen 2
|
| 31 |
models_to_warm = [
|
| 32 |
+
{
|
| 33 |
+
"name": "NLLB Translator",
|
| 34 |
+
"url": "https://rajhuggingface4253-translate.hf.space",
|
| 35 |
+
"endpoint": "/translate",
|
| 36 |
+
"type": "streaming_chat", # Reusing streaming logic as NLLB streams text
|
| 37 |
+
"timeout": 45.0,
|
| 38 |
+
"payload": {
|
| 39 |
+
"text": "warmup",
|
| 40 |
+
"src_lang": "eng_Latn",
|
| 41 |
+
"tgt_lang": "hin_Deva"
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
{
|
| 45 |
"name": "Qwen 1",
|
| 46 |
"url": "https://rajhuggingface4253-qwen.hf.space",
|