Zaman
commited on
Commit
•
8870fe7
1
Parent(s):
6fbddc0
added header
Browse files
bot.py
CHANGED
@@ -10,7 +10,6 @@ from langchain.memory import ConversationBufferWindowMemory
|
|
10 |
# RetrievalQAWithSourcesChain.from_llm()
|
11 |
# ConversationalRetrievalChain()
|
12 |
|
13 |
-
|
14 |
persist_direcory = "openai_embeddings"
|
15 |
|
16 |
embeddings = OpenAIEmbeddings()
|
@@ -40,6 +39,9 @@ qa = ConversationalRetrievalChain.from_llm(
|
|
40 |
# print(res["answer"])
|
41 |
|
42 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
43 |
chatbot = gr.Chatbot()
|
44 |
msg = gr.Textbox()
|
45 |
clear = gr.Button("clear")
|
|
|
10 |
# RetrievalQAWithSourcesChain.from_llm()
|
11 |
# ConversationalRetrievalChain()
|
12 |
|
|
|
13 |
persist_direcory = "openai_embeddings"
|
14 |
|
15 |
embeddings = OpenAIEmbeddings()
|
|
|
39 |
# print(res["answer"])
|
40 |
|
41 |
with gr.Blocks() as demo:
|
42 |
+
with gr.Row():
|
43 |
+
gr.HTML("Chat on Earning calls using GPT")
|
44 |
+
|
45 |
chatbot = gr.Chatbot()
|
46 |
msg = gr.Textbox()
|
47 |
clear = gr.Button("clear")
|