Spaces:
Build error
Build error
Update app.py
Browse files8 unmodified lines9101112131422 unmodified lines373839404142435 unmodified lines4950515253548 unmodified linesyield itime.sleep(0.005)# Streamlit app initializationst.title("RAG AGENT")st.markdown("RAG Agent with PDF and Web Search")22 unmodified linesst.success("Done")with st.container(height=200):st.markdown("Lorem ipsum. " * 1000)user_prompt = st.chat_input("Ask me anything about the content of the PDF or Web Link:")5 unmodified lines# Trigger assistant's response retrieval and update UIwith st.spinner("Thinking..."):response = "I have an answer coming soon..."with st.chat_message("user", avatar="robot.png"):st.write_stream(streamer(response))st.session_state.messages.append({'role': 'assistant', "content": response})8 unmodified lines91011121314151622 unmodified lines394041424344455 unmodified lines515253545556578 unmodified linesyield itime.sleep(0.005)console_out =""# Streamlit app initializationst.title("RAG AGENT")st.markdown("RAG Agent with PDF and Web Search")22 unmodified linesst.success("Done")with st.container(height=200):st.markdown(console_out)user_prompt = st.chat_input("Ask me anything about the content of the PDF or Web Link:")5 unmodified lines# Trigger assistant's response retrieval and update UIwith st.spinner("Thinking..."):response = "I have an answer coming soon..."console_out.append(response+"\n")with st.chat_message("user", avatar="robot.png"):st.write_stream(streamer(response))st.session_state.messages.append({'role': 'assistant', "content": response})
app.py+4-1