Spaces:
Sleeping
Sleeping
Commit
Β·
0120a09
1
Parent(s):
232e1ea
Update app.py
Browse filesname and header changed
app.py
CHANGED
@@ -40,12 +40,12 @@ def user_input(user_question):
|
|
40 |
st.session_state.chatHistory = response['chat_history']
|
41 |
for i, message in enumerate(st.session_state.chatHistory):
|
42 |
if i%2 == 0:
|
43 |
-
st.write("
|
44 |
else:
|
45 |
-
st.write("
|
46 |
def main():
|
47 |
-
st.set_page_config("
|
48 |
-
st.header("
|
49 |
user_question = st.text_input("Ask a Question from the PDF Files")
|
50 |
if "conversation" not in st.session_state:
|
51 |
st.session_state.conversation = None
|
|
|
40 |
st.session_state.chatHistory = response['chat_history']
|
41 |
for i, message in enumerate(st.session_state.chatHistory):
|
42 |
if i%2 == 0:
|
43 |
+
st.write("Me: ", message.content)
|
44 |
else:
|
45 |
+
st.write("mGPT: ", message.content)
|
46 |
def main():
|
47 |
+
st.set_page_config("palm2 pdf ")
|
48 |
+
st.header("Hi , ask me anything from your pdf π ")
|
49 |
user_question = st.text_input("Ask a Question from the PDF Files")
|
50 |
if "conversation" not in st.session_state:
|
51 |
st.session_state.conversation = None
|