faizee07 commited on
Commit
2883329
·
verified ·
1 Parent(s): 6252a44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import os
2
  import gradio as gr
3
  from crewai import Agent, Task, Crew, Process
4
- from crewai_tools import DuckDuckGoSearchRunTool, FileWriteTool
5
  from langchain_google_genai import ChatGoogleGenerativeAI
6
 
7
  # --- 1. SET UP THE GEMINI LLM ---
@@ -22,7 +22,7 @@ except Exception as e:
22
  llm = None # Set llm to None to prevent further errors
23
 
24
  # --- 2. DEFINE TOOLS AND OUTPUT DIRECTORY ---
25
- search_tool = DuckDuckGoSearchRunTool()
26
  os.makedirs("outputs", exist_ok=True)
27
  file_write_tool = FileWriteTool(file_path="outputs/index.html")
28
 
@@ -169,3 +169,4 @@ iface = gr.Interface(
169
 
170
  if __name__ == "__main__":
171
  iface.launch()
 
 
1
  import os
2
  import gradio as gr
3
  from crewai import Agent, Task, Crew, Process
4
+ from crewai_tools import DuckDuckGoSearchTool, FileWriteTool # CORRECTED IMPORT
5
  from langchain_google_genai import ChatGoogleGenerativeAI
6
 
7
  # --- 1. SET UP THE GEMINI LLM ---
 
22
  llm = None # Set llm to None to prevent further errors
23
 
24
  # --- 2. DEFINE TOOLS AND OUTPUT DIRECTORY ---
25
+ search_tool = DuckDuckGoSearchTool() # CORRECTED TOOL NAME
26
  os.makedirs("outputs", exist_ok=True)
27
  file_write_tool = FileWriteTool(file_path="outputs/index.html")
28
 
 
169
 
170
  if __name__ == "__main__":
171
  iface.launch()
172
+