Rajhuggingface4253 commited on
Commit
8563601
·
verified ·
1 Parent(s): b46be39

Update app.py

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