Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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='
|
| 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 |
|