Spaces:
Sleeping
Sleeping
MatteoScript
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -256,7 +256,6 @@ def generate_chat_stream(prompt) :
|
|
256 |
|
257 |
def inserisci_istruzioni(prompt_originale):
|
258 |
links = []
|
259 |
-
instruction_originale = st.session_state.instruction
|
260 |
if st.session_state.cerca_online:
|
261 |
with st.spinner("Ricerca Online...."):
|
262 |
time.sleep(1)
|
@@ -267,7 +266,7 @@ def inserisci_istruzioni(prompt_originale):
|
|
267 |
st.session_state.instruction, links = gen_augmented_prompt(prompt=prompt_originale, top_k=st.session_state.top_k)
|
268 |
with st.spinner("Generazione in corso...") :
|
269 |
time.sleep(1)
|
270 |
-
st.session_state.instruction = instruction_originale + '\n----------------------------------------------\n' + st.session_state.instruction
|
271 |
return links
|
272 |
|
273 |
def stream_handler(chat_stream, placeholder) :
|
|
|
256 |
|
257 |
def inserisci_istruzioni(prompt_originale):
|
258 |
links = []
|
|
|
259 |
if st.session_state.cerca_online:
|
260 |
with st.spinner("Ricerca Online...."):
|
261 |
time.sleep(1)
|
|
|
266 |
st.session_state.instruction, links = gen_augmented_prompt(prompt=prompt_originale, top_k=st.session_state.top_k)
|
267 |
with st.spinner("Generazione in corso...") :
|
268 |
time.sleep(1)
|
269 |
+
#st.session_state.instruction = instruction_originale + '\n----------------------------------------------\n' + st.session_state.instruction
|
270 |
return links
|
271 |
|
272 |
def stream_handler(chat_stream, placeholder) :
|