crypto_crewAI / .ipynb_checkpoints /chat_gradio-checkpoint.py
quocdat25's picture
Upload folder using huggingface_hub
be6f674 verified
raw
history blame
628 Bytes
# from langchain_community.llms import HuggingFaceEndpoint
# from langchain.prompts import PromptTemplate
# from langchain.schema import AIMessage, HumanMessage
# from langchain.chains import LLMChain
import gradio as gr
import os
from crew import CryptoCrew
from dotenv import load_dotenv
load_dotenv()
def predict(message):
# company = input(
# dedent("""
# Which cryptocurrency are you looking to delve into?
# """))
crypto_crew = CryptoCrew(company)
response = "## Here is the Report\n\n" + crypto_crew.run()
return response
gr.ChatInterface(predict).launch()