ammr commited on
Commit
18a9cc0
·
verified ·
1 Parent(s): bba9411

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -5,6 +5,7 @@ import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
  from tools.visit_webpage import VisitWebpageTool
 
8
 
9
  from Gradio_UI import GradioUI
10
 
@@ -14,11 +15,8 @@ def hash_encoding(sentence:str)-> str:
14
  Args:
15
  sentence: A string to be encoded
16
  """
17
- import hashlib
18
 
19
- sentence_encoded = hashlib.sha256(sentence).hexdigest()
20
-
21
- return sentence_encoded
22
 
23
  @tool
24
  def get_current_time_in_timezone(timezone: str) -> str:
 
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
  from tools.visit_webpage import VisitWebpageTool
8
+ import hashlib
9
 
10
  from Gradio_UI import GradioUI
11
 
 
15
  Args:
16
  sentence: A string to be encoded
17
  """
 
18
 
19
+ return hashlib.sha256(sentence.encode()).hexdigest()
 
 
20
 
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str: