Update app.py
Browse files
app.py
CHANGED
@@ -99,11 +99,11 @@ def load_model(_docs):
|
|
99 |
model=model,
|
100 |
tokenizer=tokenizer,
|
101 |
max_new_tokens=1024,
|
102 |
-
temperature=0.
|
103 |
top_p=0.95,
|
104 |
repetition_penalty=1.15,
|
105 |
streamer=streamer,)
|
106 |
-
llm = HuggingFacePipeline(pipeline=text_pipeline, model_kwargs={"temperature": 0.
|
107 |
|
108 |
# SYSTEM_PROMPT = ("Use the following pieces of context to answer the question at the end. "
|
109 |
# "If you don't know the answer, just say that you don't know, "
|
@@ -238,6 +238,7 @@ if prompt := st.chat_input("How can I help you today?"):
|
|
238 |
generate_pdf()
|
239 |
st.session_state['reference'] = '/home/user/app/pdf2image/output.png'
|
240 |
st.image(st.session_state['reference'])
|
|
|
241 |
|
242 |
# if choice == 'TTS':
|
243 |
# with open('/home/user/app/audio/audio.mp3','wb') as sound_file:
|
|
|
99 |
model=model,
|
100 |
tokenizer=tokenizer,
|
101 |
max_new_tokens=1024,
|
102 |
+
temperature=0.1,
|
103 |
top_p=0.95,
|
104 |
repetition_penalty=1.15,
|
105 |
streamer=streamer,)
|
106 |
+
llm = HuggingFacePipeline(pipeline=text_pipeline, model_kwargs={"temperature": 0.1})
|
107 |
|
108 |
# SYSTEM_PROMPT = ("Use the following pieces of context to answer the question at the end. "
|
109 |
# "If you don't know the answer, just say that you don't know, "
|
|
|
238 |
generate_pdf()
|
239 |
st.session_state['reference'] = '/home/user/app/pdf2image/output.png'
|
240 |
st.image(st.session_state['reference'])
|
241 |
+
st.write('Book name')
|
242 |
|
243 |
# if choice == 'TTS':
|
244 |
# with open('/home/user/app/audio/audio.mp3','wb') as sound_file:
|