wishmi1234 commited on
Commit
2bde7f3
·
verified ·
1 Parent(s): ce35be4

Update app.py

Browse files

Commented out the gradio part and added DEBUG LINES

Files changed (1) hide show
  1. app.py +11 -6
app.py CHANGED
@@ -10,7 +10,7 @@ from smolagents import CodeAgent, InferenceClientModel
10
 
11
 
12
  model = InferenceClientModel()
13
-
14
 
15
  # Import our custom tools from their modules
16
  from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool, GuestInfoRetrieverTool, LatestNewsTool
@@ -79,9 +79,14 @@ response = alfred.run(query)
79
  # print(response)
80
 
81
 
82
- def greet(name):
83
- return response
84
- # return "Hello " + name + "!!"
 
 
 
85
 
86
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
87
- demo.launch()
 
 
 
10
 
11
 
12
  model = InferenceClientModel()
13
+ print("✅ Model initialized:", model) # DEBUG LINES
14
 
15
  # Import our custom tools from their modules
16
  from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool, GuestInfoRetrieverTool, LatestNewsTool
 
79
  # print(response)
80
 
81
 
82
+ # def greet(name):
83
+ # return response
84
+ # # return "Hello " + name + "!!"
85
+
86
+ # demo = gr.Interface(fn=greet, inputs="text", outputs="text")
87
+ # demo.launch()
88
 
89
+ # DEBUG LINES
90
+ query = "I need to speak with Dr. Nikola Tesla about recent advancements in wireless energy. Can you help me prepare for this conversation?"
91
+ response = alfred.run(query)
92
+ print(response)