Spaces:
Sleeping
Sleeping
File size: 876 Bytes
22f1389 ff31e06 22f1389 ff31e06 22f1389 5c44ace 22f1389 5c44ace |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
import os
from dotenv import load_dotenv
from smolagents import LiteLLMModel
#from phoenix.otel import register
#from openinference.instrumentation.smolagents import SmolagentsInstrumentor
#register()
#SmolagentsInstrumentor().instrument()
import os
load_dotenv()
# API Configuration
API_KEY = os.getenv("ANTHROPIC_API_KEY")
if not API_KEY:
print("⚠️ API key not found in .env file!")
NASA_FIRMS_MAP_KEY = os.getenv("NASA_FIRMS_MAP_KEY", "b16df29134bfb809c751d7e283c71312")
# Server configuration
GRADIO_SERVER_NAME = os.getenv("GRADIO_SERVER_NAME", "0.0.0.0")
GRADIO_SERVER_PORT = int(os.getenv("GRADIO_SERVER_PORT", "7860"))
GRADIO_SHARE = os.getenv("GRADIO_SHARE", "False").lower() == "true"
# Model configuration
MODEL_ID = os.getenv("MODEL_ID", "claude-sonnet-4-20250514")
# Initialize the model
model = LiteLLMModel(model_id=MODEL_ID, api_key=API_KEY)
|