Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,11 +62,11 @@ def webpage_summarizer(url: str) -> str:
|
|
62 |
except Exception as e:
|
63 |
return f"Error processing webpage: {str(e)}"
|
64 |
|
65 |
-
|
66 |
model = HfApiModel(
|
67 |
max_tokens=2096,
|
68 |
temperature=0.5,
|
69 |
-
model_id='
|
70 |
custom_role_conversions=None,
|
71 |
)
|
72 |
|
@@ -74,8 +74,6 @@ model = HfApiModel(
|
|
74 |
with open("prompts.yaml", 'r') as stream:
|
75 |
prompt_templates = yaml.safe_load(stream)
|
76 |
|
77 |
-
# Initialize final answer tool
|
78 |
-
final_answer = FinalAnswerTool()
|
79 |
|
80 |
# Create the agent with the webpage summarizer tool
|
81 |
agent = CodeAgent(
|
|
|
62 |
except Exception as e:
|
63 |
return f"Error processing webpage: {str(e)}"
|
64 |
|
65 |
+
final_answer = FinalAnswerTool()
|
66 |
model = HfApiModel(
|
67 |
max_tokens=2096,
|
68 |
temperature=0.5,
|
69 |
+
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
|
70 |
custom_role_conversions=None,
|
71 |
)
|
72 |
|
|
|
74 |
with open("prompts.yaml", 'r') as stream:
|
75 |
prompt_templates = yaml.safe_load(stream)
|
76 |
|
|
|
|
|
77 |
|
78 |
# Create the agent with the webpage summarizer tool
|
79 |
agent = CodeAgent(
|