dropdown fix
Browse files40 unmodified lines414243444445464748495051525323 unmodified lines7778797980818283848586878835 unmodified lines12412512612512712812913013113213313413513623 unmodified lines16016116216016316416516616716816917017117219 unmodified lines19219319419119519619719819920020120220326 unmodified lines23023123222823323423523623723823924024135 unmodified lines27727827927428028128228328428528628728827 unmodified lines31631731831231932032132232332432532632736 unmodified lines36436536635936736836937037137237337437537652 unmodified lines42943043142343243343443543643743843944029 unmodified lines47047147246347347447547647747847948048125 unmodified lines50750850949951051151251351451551651751851952052152252352452552 unmodified lines57857958056358158258358458558658758858959064 unmodified lines65565665763965865966066166266366466566666740 unmodified lines ) def update_llama_model(new_model): return gr.load( llama_interface.load( name=new_model, src=sambanova_gradio.registry, multimodal=True, fill_height=True ) return llama_interface llama_model.change( fn=update_llama_model,23 unmodified lines ) def update_gemini_model(new_model): return gr.load( gemini_interface.load( name=new_model, src=gemini_gradio.registry, fill_height=True ) return gemini_interface gemini_model.change( fn=update_gemini_model,35 unmodified lines ) def update_model(new_model): return gr.load( chatgpt_interface.load( name=new_model, src=openai_gradio.registry, accept_token=True, fill_height=True ) return chatgpt_interface model_choice.change( fn=update_model,23 unmodified lines ) def update_claude_model(new_model): return gr.load( claude_interface.load( name=new_model, src=anthropic_gradio.registry, accept_token=True, fill_height=True ) return claude_interface claude_model.change( fn=update_claude_model,19 unmodified lines ) def update_grok_model(new_model): return gr.load( grok_interface.load( name=new_model, src=xai_gradio.registry, fill_height=True ) return grok_interface grok_model.change( fn=update_grok_model,26 unmodified lines ) def update_groq_model(new_model): return gr.load( groq_interface.load( name=new_model, src=groq_gradio.registry, fill_height=True ) return groq_interface groq_model.change( fn=update_groq_model,35 unmodified lines ) def update_hyperbolic_model(new_model): return gr.load( hyperbolic_interface.load( name=new_model, src=hyperbolic_gradio.registry, fill_height=True ) return hyperbolic_interface hyperbolic_model.change( fn=update_hyperbolic_model,27 unmodified lines ) def update_qwen_model(new_model): return gr.load( qwen_interface.load( name=new_model, src=hyperbolic_gradio.registry, fill_height=True ) return qwen_interface qwen_model.change( fn=update_qwen_model,36 unmodified lines ) def update_perplexity_model(new_model): return gr.load( perplexity_interface.load( name=new_model, src=perplexity_gradio.registry, accept_token=True, fill_height=True ) return perplexity_interface perplexity_model.change( fn=update_perplexity_model,52 unmodified lines ) def update_mistral_model(new_model): return gr.load( mistral_interface.load( name=new_model, src=mistral_gradio.registry, fill_height=True ) return mistral_interface mistral_model.change( fn=update_mistral_model,29 unmodified lines ) def update_fireworks_model(new_model): return gr.load( fireworks_interface.load( name=new_model, src=fireworks_gradio.registry, fill_height=True ) return fireworks_interface fireworks_model.change( fn=update_fireworks_model,25 unmodified lines ) def update_cerebras_model(new_model): return gr.load( cerebras_interface.load( name=new_model, src=cerebras_gradio.registry, accept_token=True, # Added token acceptance fill_height=True ) return cerebras_interface cerebras_model.change( fn=update_cerebras_model, inputs=[cerebras_model], outputs=[cerebras_interface] ) with gr.Tab("Together"): with gr.Row(): together_model = gr.Dropdown(52 unmodified lines ) def update_together_model(new_model): return gr.load( together_interface.load( name=new_model, src=together_gradio.registry, multimodal=True, fill_height=True ) return together_interface together_model.change( fn=update_together_model,64 unmodified lines ) def update_nvidia_model(new_model): return gr.load( nvidia_interface.load( name=new_model, src=nvidia_gradio.registry, accept_token=True, fill_height=True ) return nvidia_interface nvidia_model.change( fn=update_nvidia_model,app.py+34-14