CryptoScoutv1 commited on
Commit
7c10474
·
verified ·
1 Parent(s): ac47988

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -15
app.py CHANGED
@@ -1,35 +1,39 @@
1
- import os
2
  from crewai import Agent, Task, Crew, Process
3
- from langchain.tools import Tool # Assuming DuckDuckGoSearchRun or equivalent tool is available
 
4
  import gradio as gr
5
 
6
- # Assuming WebSearchTools and ChatGoogleGenerativeAI are properly defined and available
7
- from WebScape_TOOL import WebSearchTools
8
 
9
  ################################## - GOOGLE LLM - ##################################
 
10
  from langchain_google_genai import ChatGoogleGenerativeAI
11
 
12
- api_gemini = os.environ["api_gemini"]
13
- llm = ChatGoogleGenerativeAI(model="gemini-pro", verbose=True, temperature=0.1, google_api_key=api_gemini)
14
- ################################## - GOOGLE LLM - ##################################
15
 
 
16
 
 
 
 
 
 
 
 
17
 
18
 
 
 
 
 
 
 
 
19
 
20
  ################################## - CREW and TASKS - ##################################
21
 
22
  def create_crewai_crypto_setup(crypto_symbol):
23
  # Main Research Agent for technical and market analysis
24
 
25
-
26
- from langchain.tools import DuckDuckGoSearchRun
27
- duckduckgo_search_tool = DuckDuckGoSearchRun()
28
-
29
- from WebScape_TOOL import WebSearchTools
30
-
31
- search = WebSearchTools()
32
- process = WebSearchTools().process_search_results
33
 
34
  research_agent = Agent(
35
  role="Crypto Analysis Expert",
 
 
1
  from crewai import Agent, Task, Crew, Process
2
+ from langchain.tools import Tool
3
+
4
  import gradio as gr
5
 
6
+
 
7
 
8
  ################################## - GOOGLE LLM - ##################################
9
+ import os
10
  from langchain_google_genai import ChatGoogleGenerativeAI
11
 
 
 
 
12
 
13
+ api_gemini = os.environ["api_gemini"]
14
 
15
+ # Define the Large Language Model (LLM)
16
+ llm = ChatGoogleGenerativeAI(
17
+ model="gemini-pro",
18
+ verbose=True,
19
+ temperature=0.1,
20
+ google_api_key=api_gemini)
21
+ ################################## - GOOGLE LLM - ##################################
22
 
23
 
24
+ from langchain.tools import DuckDuckGoSearchRun
25
+ duckduckgo_search_tool = DuckDuckGoSearchRun()
26
+
27
+ from WebScape_TOOL import WebSearchTools
28
+ search = WebSearchTools()
29
+ process = WebSearchTools().process_search_results
30
+
31
 
32
  ################################## - CREW and TASKS - ##################################
33
 
34
  def create_crewai_crypto_setup(crypto_symbol):
35
  # Main Research Agent for technical and market analysis
36
 
 
 
 
 
 
 
 
 
37
 
38
  research_agent = Agent(
39
  role="Crypto Analysis Expert",