Spaces:
Sleeping
Sleeping
Update app.py
Browse filesCommented out the gradio part and added DEBUG LINES
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 |
-
|
| 84 |
-
|
|
|
|
|
|
|
|
|
|
| 85 |
|
| 86 |
-
|
| 87 |
-
|
|
|
|
|
|
|
|
|
| 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)
|