add qwq
Browse filesFiles changed (4)
- app.py-11
- app_huggingface.py+2-2
- pyproject.toml+1-1
- requirements.txt+1-1
122348 unmodified lines13141517181920212223242516171819202132222324from app_huggingface import demo as demo_huggingfacefrom app_openrouter import demo as demo_openrouterfrom utils import get_appimport gradio as gr
8 unmodified lines coder=True, provider="together").launch()""","OpenRouter Coder": """import gradio as grimport ai_gradiogr.load( name='openrouter:anthropic/claude-3.7-sonnet', src=ai_gradio.registry, coder=True).launch()""",
# Add similar snippets for other providers}
# Create mapping of providers to their demosPROVIDERS = { "Hugging Face": demo_huggingface, "OpenRouter Coder": demo_openrouter}
# Modified get_app implementation11 unmodified lines12131415151617181920202111 unmodified lines# Create and launch the interface using get_app utilitydemo = get_app( models=HUGGINGFACE_MODELS_FULL, # Use the full names with prefix default_model=HUGGINGFACE_MODELS_FULL[0], default_model=HUGGINGFACE_MODELS_FULL[16], dropdown_label="Select Huggingface Model", choices=HUGGINGFACE_MODELS_DISPLAY, # Display names without prefix fill_height=True, coder=True, provider="together" provider="fireworks-ai")37 unmodified lines383940414142434437 unmodified lines "langchain>=0.3.14", "chromadb>=0.5.23", "openai>=1.55.0", "ai-gradio[crewai,deepseek,gemini,groq,hyperbolic,openai,smolagents,transformers, langchain, mistral,minimax,nvidia, qwen, openrouter, huggingface]>=0.2.50", "ai-gradio[crewai,deepseek,gemini,groq,hyperbolic,openai,smolagents,transformers, langchain, mistral,minimax,nvidia, qwen, openrouter, huggingface]>=0.2.53",]
[tool.uv.sources]1 unmodified line234556781 unmodified line# uv pip compile pyproject.toml -o requirements.txtaccelerate==1.2.1 # via ai-gradioai-gradio==0.2.50ai-gradio==0.2.53 # via anychat (pyproject.toml)aiofiles==23.2.1 # via gradioapp.py-11
app_huggingface.py+2-2
pyproject.toml+1-1
requirements.txt+1-1