From 93d9e2e12fe82889e522824a020bb6318d6565e8 Mon Sep 17 00:00:00 2001 From: "Thomas Dhome Casanova (from Dev Box)" Date: Wed, 22 Jan 2025 21:24:09 -0800 Subject: [PATCH] cleanup gradio app.py --- demo/gradio/app.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/demo/gradio/app.py b/demo/gradio/app.py index 72d6d66..bc55797 100644 --- a/demo/gradio/app.py +++ b/demo/gradio/app.py @@ -22,7 +22,6 @@ from anthropic.types import TextBlock from anthropic.types.beta import BetaMessage, BetaTextBlock, BetaToolUseBlock from anthropic.types.tool_use_block import ToolUseBlock from computer_use_demo.loop import ( - PROVIDER_TO_DEFAULT_MODEL_NAME, APIProvider, sampling_loop_sync, ) @@ -54,9 +53,7 @@ def setup_state(state): if "openai_api_key" not in state: # Fetch API keys from environment variables state["openai_api_key"] = os.getenv("OPENAI_API_KEY", "") if "anthropic_api_key" not in state: - state["anthropic_api_key"] = os.getenv("ANTHROPIC_API_KEY", "") - if "qwen_api_key" not in state: - state["qwen_api_key"] = os.getenv("QWEN_API_KEY", "") + state["anthropic_api_key"] = os.getenv("ANTHROPIC_API_KEY", "") if "api_key" not in state: state["api_key"] = "" if "auth_validated" not in state: