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