Update helper.py
Browse files
helper.py
CHANGED
@@ -73,11 +73,6 @@ def create_flan_t5_base(load_in_8bit=False):
|
|
73 |
model_kwargs={ "load_in_8bit": load_in_8bit, "max_length": 512, "temperature": 0.}
|
74 |
)
|
75 |
|
76 |
-
def conversational_chat(chain,query):
|
77 |
-
result = chain({"question": query,
|
78 |
-
"chat_history": st.session_state['history']})
|
79 |
-
st.session_state['history'].append((query, result["answer"]))
|
80 |
|
81 |
-
return result["answer"]
|
82 |
|
83 |
|
|
|
73 |
model_kwargs={ "load_in_8bit": load_in_8bit, "max_length": 512, "temperature": 0.}
|
74 |
)
|
75 |
|
|
|
|
|
|
|
|
|
76 |
|
|
|
77 |
|
78 |
|