Rename appv2.py to app.py
Browse files- appv2.py → app.py +11 -7
appv2.py → app.py
RENAMED
|
@@ -4,20 +4,24 @@ from langchain.tools import Tool # Assuming DuckDuckGoSearchRun or equivalent t
|
|
| 4 |
import gradio as gr
|
| 5 |
|
| 6 |
# Assuming WebSearchTools and ChatGoogleGenerativeAI are properly defined and available
|
| 7 |
-
from WebScape_TOOL import WebSearchTools
|
| 8 |
|
|
|
|
| 9 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 10 |
|
| 11 |
-
|
| 12 |
-
api_gemini = 'AIzaSyDkIoeAfuJoHCN3-Db-gojZd2Kzghunr3U'
|
| 13 |
-
os.environ["api_gemini"] = api_gemini
|
| 14 |
-
# Define the Large Language Model (LLM)
|
| 15 |
llm = ChatGoogleGenerativeAI(model="gemini-pro", verbose=True, temperature=0.1, google_api_key=api_gemini)
|
|
|
|
| 16 |
|
| 17 |
|
| 18 |
from langchain.tools import DuckDuckGoSearchRun
|
| 19 |
duckduckgo_search_tool = DuckDuckGoSearchRun()
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
def create_crewai_crypto_setup(crypto_symbol):
|
| 22 |
# Main Research Agent for technical and market analysis
|
| 23 |
research_agent = Agent(
|
|
@@ -91,8 +95,8 @@ iface = gr.Interface(
|
|
| 91 |
fn=run_crewai_app,
|
| 92 |
inputs="text",
|
| 93 |
outputs="text",
|
| 94 |
-
title="CryptoScout - CrewAI - Cryptocurrency
|
| 95 |
-
description="Enter a cryptocurrency name to analyze and generate a comprehensive
|
| 96 |
)
|
| 97 |
|
| 98 |
iface.launch()
|
|
|
|
| 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 |
from langchain.tools import DuckDuckGoSearchRun
|
| 18 |
duckduckgo_search_tool = DuckDuckGoSearchRun()
|
| 19 |
|
| 20 |
+
from WebScape_TOOL import WebSearchTools
|
| 21 |
+
|
| 22 |
+
search = WebSearchTools()
|
| 23 |
+
process = WebSearchTools().process_search_results
|
| 24 |
+
|
| 25 |
def create_crewai_crypto_setup(crypto_symbol):
|
| 26 |
# Main Research Agent for technical and market analysis
|
| 27 |
research_agent = Agent(
|
|
|
|
| 95 |
fn=run_crewai_app,
|
| 96 |
inputs="text",
|
| 97 |
outputs="text",
|
| 98 |
+
title="CryptoScout - CrewAI - Cryptocurrency Trade Advisor",
|
| 99 |
+
description="Enter a cryptocurrency name to analyze and generate a comprehensive trade report."
|
| 100 |
)
|
| 101 |
|
| 102 |
iface.launch()
|