gkim93 commited on
Commit
954697b
·
1 Parent(s): d739346

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,7 +23,7 @@ from langchain.vectorstores import Chroma
23
  os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
24
 
25
  #Preprocessing
26
- PreProcessing.preProcess()
27
 
28
  # Initialise Langchain - Conversation Retrieval Chain and read from the ChromaDB
29
  llm = ChatOpenAI(temperature=0.7,model_name="gpt-3.5-turbo-16k")
@@ -52,10 +52,10 @@ with gr.Blocks() as demo:
52
 
53
  # Append user message and response to chat history
54
  #Version with source
55
- chat_history = [(user_message, response["answer"] + sourceDoc)]
56
 
57
  #Version without source
58
- #chat_history = [(user_message, response["answer"])]
59
 
60
 
61
 
 
23
  os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
24
 
25
  #Preprocessing
26
+ #PreProcessing.preProcess()
27
 
28
  # Initialise Langchain - Conversation Retrieval Chain and read from the ChromaDB
29
  llm = ChatOpenAI(temperature=0.7,model_name="gpt-3.5-turbo-16k")
 
52
 
53
  # Append user message and response to chat history
54
  #Version with source
55
+ #chat_history = [(user_message, response["answer"] + sourceDoc)]
56
 
57
  #Version without source
58
+ chat_history = [(user_message, response["answer"])]
59
 
60
 
61