Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import gc
|
|
3 |
import tempfile
|
4 |
import uuid
|
5 |
import pandas as pd
|
6 |
-
import openai
|
7 |
|
8 |
from gitingest import ingest
|
9 |
from llama_index.core import Settings
|
@@ -154,13 +153,11 @@ with col2:
|
|
154 |
if "messages" not in st.session_state:
|
155 |
reset_chat()
|
156 |
|
157 |
-
|
158 |
# Display chat messages from history on app rerun
|
159 |
for message in st.session_state.messages:
|
160 |
with st.chat_message(message["role"]):
|
161 |
st.markdown(message["content"])
|
162 |
|
163 |
-
|
164 |
# Accept user input
|
165 |
if prompt := st.chat_input("What's up?"):
|
166 |
# Add user message to chat history
|
|
|
3 |
import tempfile
|
4 |
import uuid
|
5 |
import pandas as pd
|
|
|
6 |
|
7 |
from gitingest import ingest
|
8 |
from llama_index.core import Settings
|
|
|
153 |
if "messages" not in st.session_state:
|
154 |
reset_chat()
|
155 |
|
|
|
156 |
# Display chat messages from history on app rerun
|
157 |
for message in st.session_state.messages:
|
158 |
with st.chat_message(message["role"]):
|
159 |
st.markdown(message["content"])
|
160 |
|
|
|
161 |
# Accept user input
|
162 |
if prompt := st.chat_input("What's up?"):
|
163 |
# Add user message to chat history
|