Neuralsingh123 commited on
Commit
14850b9
·
verified ·
1 Parent(s): 40e3baa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
2
  import datetime
3
  import requests
4
  import pytz
@@ -11,9 +11,9 @@ from Gradio_UI import GradioUI
11
  @tool
12
  def get_news_headlines() -> str:
13
  """
14
- Fetches the top news headlines from the News API for the united states of America.
15
  This function makes a GET request to the News API to retrieve the top news headlines
16
- for the united states of America. It returns the titles and sources of the top 5 articles as a
17
  formatted string. If no articles are available, it returns a message indicating that
18
  no news is available. In case of a request error, it returns an error message.
19
  Returns:
@@ -46,7 +46,7 @@ final_answer = FinalAnswerTool()
46
  model = HfApiModel(
47
  max_tokens=2096,
48
  temperature=0.5,
49
- model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
50
  custom_role_conversions=None,
51
  )
52
 
 
1
+ from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel,load_tool, tool
2
  import datetime
3
  import requests
4
  import pytz
 
11
  @tool
12
  def get_news_headlines() -> str:
13
  """
14
+ Fetches the top news headlines from the News API for India.
15
  This function makes a GET request to the News API to retrieve the top news headlines
16
+ for India. It returns the titles and sources of the top 5 articles as a
17
  formatted string. If no articles are available, it returns a message indicating that
18
  no news is available. In case of a request error, it returns an error message.
19
  Returns:
 
46
  model = HfApiModel(
47
  max_tokens=2096,
48
  temperature=0.5,
49
+ model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',# it is possible that this model may be overloaded
50
  custom_role_conversions=None,
51
  )
52