Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,6 +7,7 @@ from tools.final_answer import FinalAnswerTool
|
|
| 7 |
import yfinance as yf
|
| 8 |
from transformers import pipeline
|
| 9 |
from newspaper import Article
|
|
|
|
| 10 |
|
| 11 |
from Gradio_UI import GradioUI
|
| 12 |
|
|
@@ -83,10 +84,13 @@ model_id='deepseek-ai/DeepSeek-R1', #'Qwen/Qwen2.5-Coder-32B-Instruct',# it is p
|
|
| 83 |
custom_role_conversions=None,
|
| 84 |
)
|
| 85 |
"""
|
|
|
|
|
|
|
| 86 |
model = LiteLLMModel(
|
| 87 |
max_tokens=100,
|
| 88 |
temperature=0.5,
|
| 89 |
model_id='anthropic/claude-3-5-sonnet-latest', #'Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
|
|
|
| 90 |
custom_role_conversions=None,
|
| 91 |
)
|
| 92 |
|
|
|
|
| 7 |
import yfinance as yf
|
| 8 |
from transformers import pipeline
|
| 9 |
from newspaper import Article
|
| 10 |
+
import os
|
| 11 |
|
| 12 |
from Gradio_UI import GradioUI
|
| 13 |
|
|
|
|
| 84 |
custom_role_conversions=None,
|
| 85 |
)
|
| 86 |
"""
|
| 87 |
+
anthropic_api_key= os.getenv("ANTHROPIC_API_KEY")
|
| 88 |
+
|
| 89 |
model = LiteLLMModel(
|
| 90 |
max_tokens=100,
|
| 91 |
temperature=0.5,
|
| 92 |
model_id='anthropic/claude-3-5-sonnet-latest', #'Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 93 |
+
api_key = anthropic_api_key,
|
| 94 |
custom_role_conversions=None,
|
| 95 |
)
|
| 96 |
|