Nonin commited on
Commit
2630109
·
verified ·
1 Parent(s): eacc839

Update app.py

Browse files

Correct imports

Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -3,6 +3,8 @@ import datetime
3
  import requests
4
  import pytz
5
  import yaml
 
 
6
  from tools.final_answer import FinalAnswerTool
7
 
8
  from Gradio_UI import GradioUI
@@ -33,10 +35,6 @@ def get_current_time_in_timezone(timezone: str) -> str:
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
- from smolagent.tools.duckduckgo_search import DuckDuckGoSearchTool
37
- from datetime import datetime
38
- import re
39
-
40
  def sentiment_analysis(text: str) -> str:
41
  """Basic economic sentiment analysis based on keywords"""
42
  positive_keywords = ["growth", "profit", "increase", "investment", "record revenue", "expansion", "gain"]
 
3
  import requests
4
  import pytz
5
  import yaml
6
+ from datetime import datetime
7
+ import re
8
  from tools.final_answer import FinalAnswerTool
9
 
10
  from Gradio_UI import GradioUI
 
35
  except Exception as e:
36
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
37
 
 
 
 
 
38
  def sentiment_analysis(text: str) -> str:
39
  """Basic economic sentiment analysis based on keywords"""
40
  positive_keywords = ["growth", "profit", "increase", "investment", "record revenue", "expansion", "gain"]