Spaces:
Running on CPU Upgrade

akhaliq HF staff commited on
Commit
531b2a0
·
1 Parent(s): 9cabfb3

just use mistral

Browse files
Files changed (3) hide show
  1. app.py +2 -3
  2. app_mistral.py +1 -0
  3. app_mistral_coder.py +0 -23
app.py CHANGED
@@ -33,13 +33,12 @@ from app_groq import demo as demo_groq
33
  from app_groq_coder import demo as demo_groq_coder
34
  from app_openai_coder import demo as demo_openai_coder
35
  from app_langchain import demo as demo_langchain
36
- from app_mistral_coder import demo as demo_mistral_coder
37
  from app_mistral import demo as demo_mistral
38
  from utils import get_app
39
 
40
  # Create mapping of providers to their demos
41
  PROVIDERS = {
42
- "Mistral Coder": demo_mistral_coder,
43
  "Langchain Agent": demo_langchain,
44
  "Gemini Camera": demo_gemini_camera,
45
  "Gemini Coder": demo_gemini_coder,
@@ -79,7 +78,7 @@ PROVIDERS = {
79
 
80
  demo = get_app(
81
  models=list(PROVIDERS.keys()),
82
- default_model="Mistral Codestral",
83
  src=PROVIDERS,
84
  dropdown_label="Select Provider",
85
  )
 
33
  from app_groq_coder import demo as demo_groq_coder
34
  from app_openai_coder import demo as demo_openai_coder
35
  from app_langchain import demo as demo_langchain
 
36
  from app_mistral import demo as demo_mistral
37
  from utils import get_app
38
 
39
  # Create mapping of providers to their demos
40
  PROVIDERS = {
41
+ "Mistral": demo_mistral,
42
  "Langchain Agent": demo_langchain,
43
  "Gemini Camera": demo_gemini_camera,
44
  "Gemini Coder": demo_gemini_coder,
 
78
 
79
  demo = get_app(
80
  models=list(PROVIDERS.keys()),
81
+ default_model="Mistral",
82
  src=PROVIDERS,
83
  dropdown_label="Select Provider",
84
  )
app_mistral.py CHANGED
@@ -16,6 +16,7 @@ demo = get_app(
16
  dropdown_label="Select Mistral Model",
17
  choices=MISTRAL_MODELS_DISPLAY, # Display names without prefix
18
  fill_height=True,
 
19
  )
20
 
21
  if __name__ == "__main__":
 
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__":
app_mistral_coder.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()