update
Browse files40 unmodified lines4142434445464748495051525323 unmodified lines77787980818283848586878835 unmodified lines12412512612712812913013113213313413513623 unmodified lines16016116216316416516616716816917017117219 unmodified lines19219319419519619719819920020120220326 unmodified lines23023123223323423523623723823924024135 unmodified lines27727827928028128228328428528628728827 unmodified lines31631731831932032132232332432532632736 unmodified lines36436536636736836937037137237337437537652 unmodified lines42943043143243343443543643743843944029 unmodified lines47047147247347447547647747847948048125 unmodified lines50750850951051151251351451551651751851958 unmodified lines57857958058158258358458558658758858959064 unmodified lines65565665765865966066166266366466566666740 unmodified lines)def update_llama_model(new_model):llama_interface.load(name=new_model,src=sambanova_gradio.registry,multimodal=True,fill_height=True)return llama_interfacellama_model.change(fn=update_llama_model,23 unmodified lines)def update_gemini_model(new_model):gemini_interface.load(name=new_model,src=gemini_gradio.registry,fill_height=True)return gemini_interfacegemini_model.change(fn=update_gemini_model,35 unmodified lines)def update_model(new_model):chatgpt_interface.load(name=new_model,src=openai_gradio.registry,accept_token=True,fill_height=True)return chatgpt_interfacemodel_choice.change(fn=update_model,23 unmodified lines)def update_claude_model(new_model):claude_interface.load(name=new_model,src=anthropic_gradio.registry,accept_token=True,fill_height=True)return claude_interfaceclaude_model.change(fn=update_claude_model,19 unmodified lines)def update_grok_model(new_model):grok_interface.load(name=new_model,src=xai_gradio.registry,fill_height=True)return grok_interfacegrok_model.change(fn=update_grok_model,26 unmodified lines)def update_groq_model(new_model):groq_interface.load(name=new_model,src=groq_gradio.registry,fill_height=True)return groq_interfacegroq_model.change(fn=update_groq_model,35 unmodified lines)def update_hyperbolic_model(new_model):hyperbolic_interface.load(name=new_model,src=hyperbolic_gradio.registry,fill_height=True)return hyperbolic_interfacehyperbolic_model.change(fn=update_hyperbolic_model,27 unmodified lines)def update_qwen_model(new_model):qwen_interface.load(name=new_model,src=hyperbolic_gradio.registry,fill_height=True)return qwen_interfaceqwen_model.change(fn=update_qwen_model,36 unmodified lines)def update_perplexity_model(new_model):perplexity_interface.load(name=new_model,src=perplexity_gradio.registry,accept_token=True,fill_height=True)return perplexity_interfaceperplexity_model.change(fn=update_perplexity_model,52 unmodified lines)def update_mistral_model(new_model):mistral_interface.load(name=new_model,src=mistral_gradio.registry,fill_height=True)return mistral_interfacemistral_model.change(fn=update_mistral_model,29 unmodified lines)def update_fireworks_model(new_model):fireworks_interface.load(name=new_model,src=fireworks_gradio.registry,fill_height=True)return fireworks_interfacefireworks_model.change(fn=update_fireworks_model,25 unmodified lines)def update_cerebras_model(new_model):cerebras_interface.load(name=new_model,src=cerebras_gradio.registry,accept_token=True, # Added token acceptancefill_height=True)return cerebras_interfacecerebras_model.change(fn=update_cerebras_model,58 unmodified lines)def update_together_model(new_model):together_interface.load(name=new_model,src=together_gradio.registry,multimodal=True,fill_height=True)return together_interfacetogether_model.change(fn=update_together_model,64 unmodified lines)def update_nvidia_model(new_model):nvidia_interface.load(name=new_model,src=nvidia_gradio.registry,accept_token=True,fill_height=True)return nvidia_interfacenvidia_model.change(fn=update_nvidia_model,40 unmodified lines41424344454647484950515223 unmodified lines767778798081828384858635 unmodified lines12212312412512612712812913013113213323 unmodified lines15715815916016116216316416516616716819 unmodified lines18818919019119219319419519619719826 unmodified lines22522622722822923023123223323423535 unmodified lines27127227327427527627727827928028127 unmodified lines30931031131231331431531631731831936 unmodified lines35635735835936036136236336436536636752 unmodified lines42042142242342442542642742842943029 unmodified lines46046146246346446546646746846947025 unmodified lines49649749849950050150250350450550650758 unmodified lines56656756856957057157257357457557657764 unmodified lines64264364464564664764864965065165265340 unmodified lines)def update_llama_model(new_model):return gr.load(name=new_model,src=sambanova_gradio.registry,multimodal=True,fill_height=True)llama_model.change(fn=update_llama_model,23 unmodified lines)def update_gemini_model(new_model):return gr.load(name=new_model,src=gemini_gradio.registry,fill_height=True)gemini_model.change(fn=update_gemini_model,35 unmodified lines)def update_model(new_model):return gr.load(name=new_model,src=openai_gradio.registry,accept_token=True,fill_height=True)model_choice.change(fn=update_model,23 unmodified lines)def update_claude_model(new_model):return gr.load(name=new_model,src=anthropic_gradio.registry,accept_token=True,fill_height=True)claude_model.change(fn=update_claude_model,19 unmodified lines)def update_grok_model(new_model):return gr.load(name=new_model,src=xai_gradio.registry,fill_height=True)grok_model.change(fn=update_grok_model,26 unmodified lines)def update_groq_model(new_model):return gr.load(name=new_model,src=groq_gradio.registry,fill_height=True)groq_model.change(fn=update_groq_model,35 unmodified lines)def update_hyperbolic_model(new_model):return gr.load(name=new_model,src=hyperbolic_gradio.registry,fill_height=True)hyperbolic_model.change(fn=update_hyperbolic_model,27 unmodified lines)def update_qwen_model(new_model):return gr.load(name=new_model,src=hyperbolic_gradio.registry,fill_height=True)qwen_model.change(fn=update_qwen_model,36 unmodified lines)def update_perplexity_model(new_model):return gr.load(name=new_model,src=perplexity_gradio.registry,accept_token=True,fill_height=True)perplexity_model.change(fn=update_perplexity_model,52 unmodified lines)def update_mistral_model(new_model):return gr.load(name=new_model,src=mistral_gradio.registry,fill_height=True)mistral_model.change(fn=update_mistral_model,29 unmodified lines)def update_fireworks_model(new_model):return gr.load(name=new_model,src=fireworks_gradio.registry,fill_height=True)fireworks_model.change(fn=update_fireworks_model,25 unmodified lines)def update_cerebras_model(new_model):return gr.load(name=new_model,src=cerebras_gradio.registry,accept_token=True, # Added token acceptancefill_height=True)cerebras_model.change(fn=update_cerebras_model,58 unmodified lines)def update_together_model(new_model):return gr.load(name=new_model,src=together_gradio.registry,multimodal=True,fill_height=True)together_model.change(fn=update_together_model,64 unmodified lines)def update_nvidia_model(new_model):return gr.load(name=new_model,src=nvidia_gradio.registry,accept_token=True,fill_height=True)nvidia_model.change(fn=update_nvidia_model,
app.py+14-28