Spaces:
Running
Running
Update app.py
Browse files91 unmodified lines9293949596979846 unmodified lines14514614714814915015191 unmodified lines#Attenzione! Il testo generato deve essere lungo {st.session_state.max_tokens*2} CARATTERIif instruction.startswith("http"):try:with st.spinner("Ricerca in Drive...") :resp = requests.get(instruction)resp.raise_for_status()instruction = resp.text46 unmodified lineslinks = []prompt_originale = promptif st.session_state.rag_enabled :with st.spinner("Ricerca nei documenti...."):time.sleep(1)st.session_state.instruction, links = gen_augmented_prompt(prompt=prompt_originale, top_k=st.session_state.top_k)prompt = formattaPrompt(prompt, st.session_state.systemRole, st.session_state.systemStyle, st.session_state.instruction)91 unmodified lines9293949596979846 unmodified lines14514614714814915015191 unmodified lines#Attenzione! Il testo generato deve essere lungo {st.session_state.max_tokens*2} CARATTERIif instruction.startswith("http"):try:with st.spinner("Lettura stile da Drive...") :resp = requests.get(instruction)resp.raise_for_status()instruction = resp.text46 unmodified lineslinks = []prompt_originale = promptif st.session_state.rag_enabled :with st.spinner("Ricerca nei Decreti...."):time.sleep(1)st.session_state.instruction, links = gen_augmented_prompt(prompt=prompt_originale, top_k=st.session_state.top_k)prompt = formattaPrompt(prompt, st.session_state.systemRole, st.session_state.systemStyle, st.session_state.instruction)
app.py+2-2