File size: 812 Bytes
7360ef0
c44529f
8b0f808
 
 
 
7360ef0
c919a10
70fbba8
 
531b2a0
8b0f808
fb4b7c2
8b0f808
 
a8120a0
890265a
33e7a65
267b04d
8146464
f57f58c
8146464
 
267b04d
16d456d
0a632f8
905e9bd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from app_huggingface import demo as demo_huggingface
from app_mistral import demo as demo_mistral
from app_gemini_coder import demo as demo_gemini_coder
from app_gemini import demo as demo_gemini
from app_hyperbolic import demo as demo_hyperbolic
from app_sambanova import demo as demo_sambanova
from utils import get_app

# Create mapping of providers to their demos
PROVIDERS = {
    "Mistral": demo_mistral,
    "SambaNova": demo_sambanova,
    "Hyperbolic Coder": demo_hyperbolic,
    "Gemini Coder": demo_gemini_coder,
    "Gemini": demo_gemini,
 #   "Huggingface": demo_huggingface,
}

demo = get_app(
    models=list(PROVIDERS.keys()),
    default_model="Mistral",
    src=PROVIDERS,
    dropdown_label="Select Provider",
)

if __name__ == "__main__":
    demo.queue(api_open=False).launch(show_api=False)