Spaces:
Runtime error
Runtime error
File size: 672 Bytes
be6f674 d9b1770 be6f674 d9b1770 be6f674 d9b1770 3a5577c be6f674 6feb994 be6f674 d9b1770 be6f674 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# 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()
# @TODO: Stream, show instruction
def predict(message, history):
# company = input(
# dedent("""
# Which cryptocurrency are you looking to delve into?
# """))
crypto_crew = CryptoCrew(message)
response = "## Here is the Report\n\n" + crypto_crew.run()
return response
gr.ChatInterface(predict).launch()
|