anychat / app.py
Starchik1's picture
Update app.py
f57f58c verified
raw
history blame contribute delete
475 Bytes
from app_huggingface import demo as demo_huggingface
from app_mistral import demo as demo_mistral
from utils import get_app
# Create mapping of providers to their demos
PROVIDERS = {
"Mistral": demo_mistral,
# "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)