momegas commited on
Commit
c8b0adf
·
1 Parent(s): c2b8838
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -46,10 +46,6 @@ embeddings = OpenAIEmbeddings()
46
  docsearch = Chroma.from_documents(texts, embeddings).as_retriever()
47
  chat = ChatOpenAI(temperature=0.9)
48
 
49
- messages = [
50
- SystemMessage(content=system_message),
51
- ]
52
-
53
  import gradio as gr
54
 
55
  with gr.Blocks() as demo:
@@ -58,6 +54,10 @@ with gr.Blocks() as demo:
58
  clear = gr.ClearButton([msg, chatbot])
59
 
60
  def respond(message, chat_history):
 
 
 
 
61
  result_docs = docsearch.get_relevant_documents(message)
62
  human_message = None
63
  human_message = HumanMessage(
 
46
  docsearch = Chroma.from_documents(texts, embeddings).as_retriever()
47
  chat = ChatOpenAI(temperature=0.9)
48
 
 
 
 
 
49
  import gradio as gr
50
 
51
  with gr.Blocks() as demo:
 
54
  clear = gr.ClearButton([msg, chatbot])
55
 
56
  def respond(message, chat_history):
57
+ messages = [
58
+ SystemMessage(content=system_message),
59
+ ]
60
+
61
  result_docs = docsearch.get_relevant_documents(message)
62
  human_message = None
63
  human_message = HumanMessage(