Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,17 +58,14 @@ def ui():
|
|
| 58 |
Jack:
|
| 59 |
"""
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
)
|
| 65 |
|
| 66 |
-
llm_chain =
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
verbose=True,
|
| 70 |
-
memory=ConversationBufferWindowMemory(k=2)
|
| 71 |
-
)
|
| 72 |
good_morining_audio,sample_rate1=librosa.load('./good-morning.mp3')
|
| 73 |
hi_audio,sample_rate2=librosa.load('./good-morning-sir.mp3')
|
| 74 |
if 'history' not in st.session_state:
|
|
|
|
| 58 |
Jack:
|
| 59 |
"""
|
| 60 |
|
| 61 |
+
# prompt = PromptTemplate(
|
| 62 |
+
# input_variables=["history", "human_input"],
|
| 63 |
+
# template=template
|
| 64 |
+
# )
|
| 65 |
|
| 66 |
+
llm_chain = ConversationalRetrievalChain.from_llm(
|
| 67 |
+
llm = ChatOpenAI(temperature=0.0,model_name='gpt-3.5-turbo'),
|
| 68 |
+
retriever=vectorstore.as_retriever())
|
|
|
|
|
|
|
|
|
|
| 69 |
good_morining_audio,sample_rate1=librosa.load('./good-morning.mp3')
|
| 70 |
hi_audio,sample_rate2=librosa.load('./good-morning-sir.mp3')
|
| 71 |
if 'history' not in st.session_state:
|