Spaces:
Runtime error
Runtime error
reduce news output to 7 news
Browse files- Gradio_UI.py +13 -0
- app.py +1 -1
Gradio_UI.py
CHANGED
@@ -1,5 +1,18 @@
|
|
1 |
#!/usr/bin/env python
|
2 |
# coding=utf-8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
import mimetypes
|
4 |
import os
|
5 |
import re
|
|
|
1 |
#!/usr/bin/env python
|
2 |
# coding=utf-8
|
3 |
+
# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
|
4 |
+
#
|
5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
# you may not use this file except in compliance with the License.
|
7 |
+
# You may obtain a copy of the License at
|
8 |
+
#
|
9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10 |
+
#
|
11 |
+
# Unless required by applicable law or agreed to in writing, software
|
12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
+
# See the License for the specific language governing permissions and
|
15 |
+
# limitations under the License.
|
16 |
import mimetypes
|
17 |
import os
|
18 |
import re
|
app.py
CHANGED
@@ -37,7 +37,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
37 |
|
38 |
|
39 |
final_answer = FinalAnswerTool()
|
40 |
-
fetch_news = FetchNewsTool(max_results=
|
41 |
|
42 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
43 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
|
|
37 |
|
38 |
|
39 |
final_answer = FinalAnswerTool()
|
40 |
+
fetch_news = FetchNewsTool(max_results=7)
|
41 |
|
42 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
43 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|