update
Browse files40 unmodified lines414243444445464748495050515223 unmodified lines7677788079808182838584858635 unmodified lines12212312412712512612712812913013313113213323 unmodified lines15715815916316016116216316416516916616716819 unmodified lines18818919019519119219319419520019619719826 unmodified lines22522622723322822923023123223823323423535 unmodified lines27127227328027427527627727828527928028127 unmodified lines30931031131931231331431531632431731831936 unmodified lines35635735836735936036136236336437336536636752 unmodified lines42042142243242342442542642743742842943029 unmodified lines46046146247346346446546646747846846947025 unmodified lines49649749851049950050150250350451650550650758 unmodified lines56656756858156957057157257357458757557657764 unmodified lines64264364465864564664764864965066465165265340 unmodified lines ) def update_llama_model(new_model): llama_interface.load( return gr.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): gemini_interface.load( return gr.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): chatgpt_interface.load( return gr.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): claude_interface.load( return gr.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): grok_interface.load( return gr.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): groq_interface.load( return gr.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): hyperbolic_interface.load( return gr.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): qwen_interface.load( return gr.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): perplexity_interface.load( return gr.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): mistral_interface.load( return gr.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): fireworks_interface.load( return gr.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): cerebras_interface.load( return gr.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,58 unmodified lines ) def update_together_model(new_model): together_interface.load( return gr.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): nvidia_interface.load( return gr.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+14-28