MatteoScript commited on
Commit
9e2e8a2
1 Parent(s): 8055571

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -92,7 +92,7 @@ def formattaPrompt(prompt, systemRole, systemStyle, instruction):
92
  #Attenzione! Il testo generato deve essere lungo {st.session_state.max_tokens*2} CARATTERI
93
  if instruction.startswith("http"):
94
  try:
95
- with st.spinner("Ricerca in Drive...") :
96
  resp = requests.get(instruction)
97
  resp.raise_for_status()
98
  instruction = resp.text
@@ -145,7 +145,7 @@ def generate_chat_stream(prompt) :
145
  links = []
146
  prompt_originale = prompt
147
  if st.session_state.rag_enabled :
148
- with st.spinner("Ricerca nei documenti...."):
149
  time.sleep(1)
150
  st.session_state.instruction, links = gen_augmented_prompt(prompt=prompt_originale, top_k=st.session_state.top_k)
151
  prompt = formattaPrompt(prompt, st.session_state.systemRole, st.session_state.systemStyle, st.session_state.instruction)
 
92
  #Attenzione! Il testo generato deve essere lungo {st.session_state.max_tokens*2} CARATTERI
93
  if instruction.startswith("http"):
94
  try:
95
+ with st.spinner("Lettura stile da Drive...") :
96
  resp = requests.get(instruction)
97
  resp.raise_for_status()
98
  instruction = resp.text
 
145
  links = []
146
  prompt_originale = prompt
147
  if st.session_state.rag_enabled :
148
+ with st.spinner("Ricerca nei Decreti...."):
149
  time.sleep(1)
150
  st.session_state.instruction, links = gen_augmented_prompt(prompt=prompt_originale, top_k=st.session_state.top_k)
151
  prompt = formattaPrompt(prompt, st.session_state.systemRole, st.session_state.systemStyle, st.session_state.instruction)