move HF tab
Browse files198 unmodified lines199200201202203204475 unmodified lines680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746198 unmodified linesinputs=[grok_model],outputs=[grok_interface])with gr.Tab("Groq"):with gr.Row():groq_model = gr.Dropdown(475 unmodified lines- **Microsoft**: Phi-3 series- And other providers including Qwen, Databricks, DeepSeek, etc.""")with gr.Tab("Hugging Face"):with gr.Row():hf_model = gr.Dropdown(choices=[# Latest Large Models'Qwen/Qwen2.5-Coder-32B-Instruct','Qwen/Qwen2.5-72B-Instruct','meta-llama/Llama-3.1-70B-Instruct','mistralai/Mixtral-8x7B-Instruct-v0.1',# Mid-size Models'meta-llama/Llama-3.1-8B-Instruct','google/gemma-2-9b-it','mistralai/Mistral-7B-v0.1','meta-llama/Llama-2-7b-chat-hf',# Smaller Models'meta-llama/Llama-3.2-3B-Instruct','meta-llama/Llama-3.2-1B-Instruct','Qwen/Qwen2.5-1.5B-Instruct','microsoft/Phi-3.5-mini-instruct','HuggingFaceTB/SmolLM2-1.7B-Instruct','google/gemma-2-2b-it',# Base Models'meta-llama/Llama-3.2-3B','meta-llama/Llama-3.2-1B','openai-community/gpt2'],value='HuggingFaceTB/SmolLM2-1.7B-Instruct', # Default to a powerful modellabel="Select Hugging Face Model",interactive=True)hf_interface = gr.load(name=hf_model.value,src="models", # Use direct model loading from HFfill_height=True)def update_hf_model(new_model):return gr.load(name=new_model,src="models",fill_height=True)hf_model.change(fn=update_hf_model,inputs=[hf_model],outputs=[hf_interface])gr.Markdown("""**Note:** These models are loaded directly from Hugging Face Hub. Some models may require authentication.Models are organized by size:- **Large Models**: 32B-72B parameters- **Mid-size Models**: 7B-9B parameters- **Smaller Models**: 1B-3B parameters- **Base Models**: Original architecturesVisit [Hugging Face](https://huggingface.co/) to learn more about available models.""")demo.launch(ssr_mode=False)198 unmodified lines199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265475 unmodified lines741742743744745746198 unmodified linesinputs=[grok_model],outputs=[grok_interface])with gr.Tab("Hugging Face"):with gr.Row():hf_model = gr.Dropdown(choices=[# Latest Large Models'Qwen/Qwen2.5-Coder-32B-Instruct','Qwen/Qwen2.5-72B-Instruct','meta-llama/Llama-3.1-70B-Instruct','mistralai/Mixtral-8x7B-Instruct-v0.1',# Mid-size Models'meta-llama/Llama-3.1-8B-Instruct','google/gemma-2-9b-it','mistralai/Mistral-7B-v0.1','meta-llama/Llama-2-7b-chat-hf',# Smaller Models'meta-llama/Llama-3.2-3B-Instruct','meta-llama/Llama-3.2-1B-Instruct','Qwen/Qwen2.5-1.5B-Instruct','microsoft/Phi-3.5-mini-instruct','HuggingFaceTB/SmolLM2-1.7B-Instruct','google/gemma-2-2b-it',# Base Models'meta-llama/Llama-3.2-3B','meta-llama/Llama-3.2-1B','openai-community/gpt2'],value='HuggingFaceTB/SmolLM2-1.7B-Instruct', # Default to a powerful modellabel="Select Hugging Face Model",interactive=True)hf_interface = gr.load(name=hf_model.value,src="models", # Use direct model loading from HFfill_height=True)def update_hf_model(new_model):return gr.load(name=new_model,src="models",fill_height=True)hf_model.change(fn=update_hf_model,inputs=[hf_model],outputs=[hf_interface])gr.Markdown("""**Note:** These models are loaded directly from Hugging Face Hub. Some models may require authentication.Models are organized by size:- **Large Models**: 32B-72B parameters- **Mid-size Models**: 7B-9B parameters- **Smaller Models**: 1B-3B parameters- **Base Models**: Original architecturesVisit [Hugging Face](https://huggingface.co/) to learn more about available models.""")with gr.Tab("Groq"):with gr.Row():groq_model = gr.Dropdown(475 unmodified lines- **Microsoft**: Phi-3 series- And other providers including Qwen, Databricks, DeepSeek, etc.""")demo.launch(ssr_mode=False)
app.py+61-61