Update app.py
Browse files
app.py
CHANGED
@@ -1272,10 +1272,12 @@ with gr.Blocks(
|
|
1272 |
outputs=input
|
1273 |
)
|
1274 |
if not tavily_client:
|
1275 |
-
gr.Markdown("⚠️ Web search unavailable", visible=True)
|
1276 |
else:
|
1277 |
-
gr.Markdown("✅ Web search available", visible=True)
|
1278 |
model_display = gr.Markdown(f"**Model:** {AVAILABLE_MODELS[0]['name']}", visible=True) # Moonshot Kimi-K2
|
|
|
|
|
1279 |
def on_model_change(model_name):
|
1280 |
for m in AVAILABLE_MODELS:
|
1281 |
if m['name'] == model_name:
|
|
|
1272 |
outputs=input
|
1273 |
)
|
1274 |
if not tavily_client:
|
1275 |
+
tavily_status = gr.Markdown("⚠️ Web search unavailable. Set TAVILY_API_KEY.", visible=True)
|
1276 |
else:
|
1277 |
+
tavily_status = gr.Markdown("✅ Web search available", visible=True)
|
1278 |
model_display = gr.Markdown(f"**Model:** {AVAILABLE_MODELS[0]['name']}", visible=True) # Moonshot Kimi-K2
|
1279 |
+
|
1280 |
+
|
1281 |
def on_model_change(model_name):
|
1282 |
for m in AVAILABLE_MODELS:
|
1283 |
if m['name'] == model_name:
|