deepseek v3 default
Browse files913 unmodified lines91491591691791791891992044 unmodified lines96596696796896896997097118 unmodified lines990991992993993994995996997998999999100010011002913 unmodified lines setting = gr.State({ "system": SystemPrompt, }) current_model = gr.State(AVAILABLE_MODELS[0]) current_model = gr.State(AVAILABLE_MODELS[1]) # DeepSeek V3 open_panel = gr.State(None)
with gr.Sidebar():44 unmodified lines # Model selection (minimal) model_dropdown = gr.Dropdown( choices=[model['name'] for model in AVAILABLE_MODELS], value=AVAILABLE_MODELS[0]['name'], value=AVAILABLE_MODELS[1]['name'], # DeepSeek V3 label="Model" ) 18 unmodified lines gr.Markdown("✅ Web search available") # Hidden elements for functionality model_display = gr.Markdown(f"**Model:** {AVAILABLE_MODELS[0]['name']}", visible=False) model_display = gr.Markdown(f"**Model:** {AVAILABLE_MODELS[1]['name']}", visible=False) # DeepSeek V3 def on_model_change(model_name): for m in AVAILABLE_MODELS: if m['name'] == model_name: return m, f"**Model:** {m['name']}", update_image_input_visibility(m) return AVAILABLE_MODELS[0], f"**Model:** {AVAILABLE_MODELS[0]['name']}", update_image_input_visibility(AVAILABLE_MODELS[0]) return AVAILABLE_MODELS[1], f"**Model:** {AVAILABLE_MODELS[1]['name']}", update_image_input_visibility(AVAILABLE_MODELS[1]) # DeepSeek V3 fallback def save_prompt(input): return {setting: {"system": input}}app.py+4-4