Spaces:
Running
Running
Update app.py
Browse files144 unmodified lines14514614714814915015131 unmodified lines183184185186187188189144 unmodified linesreturn [("", f"θ©ειη¨ηΌηι―θͺ€οΌ{str(e)}")], gr.Markdown("### β θ©εε€±ζ")def update_model_choices(provider):return list(MODEL_CONFIGS[provider].keys())# ε»Ίη« Gradio δ»ι’with gr.Blocks(title="εζδ½ζθͺεθ©εη³»η΅±") as demo:31 unmodified linesmodel = gr.Dropdown(choices=list(MODEL_CONFIGS["openai"].keys()),label="ιΈζ樑ε",value="gpt-3.5-turbo")# ηΆζ΄ζζδΎθ ζζ΄ζ°ζ¨‘ειΈι144 unmodified lines14514614714814915015115215315415515615715815916031 unmodified lines192193194195196197198199144 unmodified linesreturn [("", f"θ©ειη¨ηΌηι―θͺ€οΌ{str(e)}")], gr.Markdown("### β θ©εε€±ζ")def update_model_choices(provider):if provider == "openai":return {"choices": list(MODEL_CONFIGS["openai"].keys()),"value": "gpt-3.5-turbo"}else:return {"choices": list(MODEL_CONFIGS["groq"].keys()),"value": "llama3-8b-8192"}# ε»Ίη« Gradio δ»ι’with gr.Blocks(title="εζδ½ζθͺεθ©εη³»η΅±") as demo:31 unmodified linesmodel = gr.Dropdown(choices=list(MODEL_CONFIGS["openai"].keys()),label="ιΈζ樑ε",value="gpt-3.5-turbo",interactive=True)# ηΆζ΄ζζδΎθ ζζ΄ζ°ζ¨‘ειΈι
app.py+12-2