Karim commited on
Commit
0f1bf05
·
verified ·
1 Parent(s): 1fdb095

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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
- # Initialize the model
66
  model = HfApiModel(
67
  max_tokens=2096,
68
  temperature=0.5,
69
- model_id='https://wxknx1kg971u7k1n.us-east-1.aws.endpoints.huggingface.cloud',
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(