Akhil15Sharma commited on
Commit
e0be672
·
1 Parent(s): cbf8842

Fixed missing smolagents module

Browse files
app.py CHANGED
@@ -5,6 +5,7 @@ import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
 
 
8
  import os
9
  os.system("pip install gradio pytz pyyaml requests")
10
 
 
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
 
8
+
9
  import os
10
  os.system("pip install gradio pytz pyyaml requests")
11
 
tools/__init__.py ADDED
File without changes
tools/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (184 Bytes). View file
 
tools/__pycache__/final_answer.cpython-311.pyc ADDED
Binary file (837 Bytes). View file
 
tools/final_answer.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ class FinalAnswerTool:
2
+ def __init__(self):
3
+ print("FinalAnswerTool initialized")
4
+
5
+ def get_final_answer(self, data):
6
+ # Your logic here
7
+ return f"Final answer is: {data}"