Spaces:
Runtime error
Runtime error
Delete app_mistral.py
Browse files- app_mistral.py +0 -23
app_mistral.py
DELETED
@@ -1,23 +0,0 @@
|
|
1 |
-
import ai_gradio
|
2 |
-
|
3 |
-
from utils_ai_gradio import get_app
|
4 |
-
|
5 |
-
# Get the mistral models but keep their full names for loading
|
6 |
-
MISTRAL_MODELS_FULL = [k for k in ai_gradio.registry.keys() if k.startswith("mistral:")]
|
7 |
-
|
8 |
-
# Create display names without the prefix
|
9 |
-
MISTRAL_MODELS_DISPLAY = [k.replace("mistral:", "") for k in MISTRAL_MODELS_FULL]
|
10 |
-
|
11 |
-
|
12 |
-
# Create and launch the interface using get_app utility
|
13 |
-
demo = get_app(
|
14 |
-
models=MISTRAL_MODELS_FULL, # Use the full names with prefix
|
15 |
-
default_model=MISTRAL_MODELS_FULL[5],
|
16 |
-
dropdown_label="Select Mistral Model",
|
17 |
-
choices=MISTRAL_MODELS_DISPLAY, # Display names without prefix
|
18 |
-
fill_height=True,
|
19 |
-
coder=True
|
20 |
-
)
|
21 |
-
|
22 |
-
if __name__ == "__main__":
|
23 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|