Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,37 +6,37 @@ import openai
|
|
| 6 |
# Model configuration dictionary
|
| 7 |
MODEL_CONFIGS = {
|
| 8 |
"Falcon-H1-34B-Instruct": {
|
| 9 |
-
"model_id": "
|
| 10 |
"api_key_env": "XXL_API_KEY",
|
| 11 |
"base_url_env": "XXL_URL",
|
| 12 |
"description": "XXL (34B)"
|
| 13 |
},
|
| 14 |
"Falcon-H1-7B-Instruct": {
|
| 15 |
-
"model_id": "
|
| 16 |
"api_key_env": "L_API_KEY",
|
| 17 |
"base_url_env": "L_URL",
|
| 18 |
"description": "L (7B)"
|
| 19 |
},
|
| 20 |
"Falcon-H1-3B-Instruct": {
|
| 21 |
-
"model_id": "
|
| 22 |
"api_key_env": "M_API_KEY",
|
| 23 |
"base_url_env": "M_URL",
|
| 24 |
"description": "M (3B)"
|
| 25 |
},
|
| 26 |
"Falcon-H1-1.5B-Deep-Instruct": {
|
| 27 |
-
"model_id": "
|
| 28 |
"api_key_env": "S_API_KEY",
|
| 29 |
"base_url_env": "S_URL",
|
| 30 |
"description": "S (1.5B Deep)"
|
| 31 |
},
|
| 32 |
"Falcon-H1-1.5B-Instruct": {
|
| 33 |
-
"model_id": "
|
| 34 |
"api_key_env": "XS_API_KEY",
|
| 35 |
"base_url_env": "XS_URL",
|
| 36 |
"description": "XS (1.5B)"
|
| 37 |
},
|
| 38 |
"Falcon-H1-0.5B-Instruct": {
|
| 39 |
-
"model_id": "
|
| 40 |
"api_key_env": "XXS_API_KEY",
|
| 41 |
"base_url_env": "XXS_URL",
|
| 42 |
"description": "XXS (0.5B)"
|
|
@@ -99,7 +99,7 @@ h3 {
|
|
| 99 |
|
| 100 |
TITLE = "<h1>Falcon-H1 Playground</h1>"
|
| 101 |
SUB_TITLE = """
|
| 102 |
-
<p class='subtitle'>Falcon-H1 is a new SoTA hybrid model by TII in Abu Dhabi. It is open source and available on Hugging Face.
|
| 103 |
<p class='subtitle' style='font-size: 0.9rem; color: #888;'></p>
|
| 104 |
"""
|
| 105 |
|
|
|
|
| 6 |
# Model configuration dictionary
|
| 7 |
MODEL_CONFIGS = {
|
| 8 |
"Falcon-H1-34B-Instruct": {
|
| 9 |
+
"model_id": "falcon-h1-34b-instruct",
|
| 10 |
"api_key_env": "XXL_API_KEY",
|
| 11 |
"base_url_env": "XXL_URL",
|
| 12 |
"description": "XXL (34B)"
|
| 13 |
},
|
| 14 |
"Falcon-H1-7B-Instruct": {
|
| 15 |
+
"model_id": "falcon-h1-7b-instruct",
|
| 16 |
"api_key_env": "L_API_KEY",
|
| 17 |
"base_url_env": "L_URL",
|
| 18 |
"description": "L (7B)"
|
| 19 |
},
|
| 20 |
"Falcon-H1-3B-Instruct": {
|
| 21 |
+
"model_id": "falcon-h1-3b-instruct",
|
| 22 |
"api_key_env": "M_API_KEY",
|
| 23 |
"base_url_env": "M_URL",
|
| 24 |
"description": "M (3B)"
|
| 25 |
},
|
| 26 |
"Falcon-H1-1.5B-Deep-Instruct": {
|
| 27 |
+
"model_id": "falcon-h1-1.5b-deep-instruct",
|
| 28 |
"api_key_env": "S_API_KEY",
|
| 29 |
"base_url_env": "S_URL",
|
| 30 |
"description": "S (1.5B Deep)"
|
| 31 |
},
|
| 32 |
"Falcon-H1-1.5B-Instruct": {
|
| 33 |
+
"model_id": "falcon-h1-1.5b-instruct",
|
| 34 |
"api_key_env": "XS_API_KEY",
|
| 35 |
"base_url_env": "XS_URL",
|
| 36 |
"description": "XS (1.5B)"
|
| 37 |
},
|
| 38 |
"Falcon-H1-0.5B-Instruct": {
|
| 39 |
+
"model_id": "falcon-h1-0.5b-instruct",
|
| 40 |
"api_key_env": "XXS_API_KEY",
|
| 41 |
"base_url_env": "XXS_URL",
|
| 42 |
"description": "XXS (0.5B)"
|
|
|
|
| 99 |
|
| 100 |
TITLE = "<h1>Falcon-H1 Playground</h1>"
|
| 101 |
SUB_TITLE = """
|
| 102 |
+
<p class='subtitle'>Falcon-H1 is a new SoTA hybrid model series by TII in Abu Dhabi. It is open source and available on Hugging Face. Try out our <a href="https://chat.falconllm.tii.ae/auth">Falcon-LLM Web App</a>.</p>
|
| 103 |
<p class='subtitle' style='font-size: 0.9rem; color: #888;'></p>
|
| 104 |
"""
|
| 105 |
|