linas-p commited on
Commit
af3360c
·
verified ·
1 Parent(s): f7a8761

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,7 +64,7 @@ def get_recent_news(description: str) -> str:
64
  # Parse the HTML content to extract plain text
65
  soup = BeautifulSoup(html_content, "html.parser")
66
  plain_text = soup.get_text(separator="\n", strip=True)
67
- return "Unverified. Plain text. The list of possible news to consider, need to revise first. Just take first news.: " + plain_text
68
 
69
  except requests.RequestException as e:
70
  return f"Error fetching HTML: {str(e)}"
@@ -80,7 +80,7 @@ final_answer = FinalAnswerTool()
80
  model = HfApiModel(
81
  max_tokens=2096,
82
  temperature=0.5,
83
- model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
84
  custom_role_conversions=None,
85
  )
86
 
 
64
  # Parse the HTML content to extract plain text
65
  soup = BeautifulSoup(html_content, "html.parser")
66
  plain_text = soup.get_text(separator="\n", strip=True)
67
+ return plain_text
68
 
69
  except requests.RequestException as e:
70
  return f"Error fetching HTML: {str(e)}"
 
80
  model = HfApiModel(
81
  max_tokens=2096,
82
  temperature=0.5,
83
+ model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',# it is possible that this model may be overloaded
84
  custom_role_conversions=None,
85
  )
86