Hisab Cloud commited on
Commit
e25f306
·
1 Parent(s): 3aff844

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,9 +73,9 @@ def create_conversational_chain(vector_store):
73
  # input = {"temperature": 0.01, "max_length" :500,"top_p":1})
74
  llm = GooglePalm(
75
  streaming = True,
76
- model = "google/flan-t5-large", #" models/text-bison-001"
77
  callbacks=[StreamingStdOutCallbackHandler()],
78
- input = {"temperature": 0.07, "max_length" :1024,"top_p":0.95})
79
  memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
80
 
81
  chain = ConversationalRetrievalChain.from_llm(llm=llm, chain_type='stuff',
 
73
  # input = {"temperature": 0.01, "max_length" :500,"top_p":1})
74
  llm = GooglePalm(
75
  streaming = True,
76
+ model = "models/text-bison-001", #" "google/flan-t5-large"
77
  callbacks=[StreamingStdOutCallbackHandler()],
78
+ input = {"temperature": 0.07, "max_length" :800,"top_p":0.95})
79
  memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
80
 
81
  chain = ConversationalRetrievalChain.from_llm(llm=llm, chain_type='stuff',