Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -780,12 +780,14 @@ if pdf_mode:
|
|
| 780 |
st.success("Done")
|
| 781 |
|
| 782 |
if pdf_mode:
|
| 783 |
-
prompt =
|
|
|
|
| 784 |
if prompt:
|
| 785 |
-
prmt = {'role': 'user', 'parts':[
|
| 786 |
-
usertxt = user_input(
|
| 787 |
append_message({'role': 'model', 'parts':usertxt})
|
| 788 |
else:
|
|
|
|
| 789 |
prompt = st.chat_input("Write your message")
|
| 790 |
|
| 791 |
if prompt:
|
|
|
|
| 780 |
st.success("Done")
|
| 781 |
|
| 782 |
if pdf_mode:
|
| 783 |
+
prompt = None
|
| 784 |
+
prompty = st.chat_input("Write your questions according to the pdf")
|
| 785 |
if prompt:
|
| 786 |
+
prmt = {'role': 'user', 'parts':[prompty]}
|
| 787 |
+
usertxt = user_input(prompty)
|
| 788 |
append_message({'role': 'model', 'parts':usertxt})
|
| 789 |
else:
|
| 790 |
+
prompty = None
|
| 791 |
prompt = st.chat_input("Write your message")
|
| 792 |
|
| 793 |
if prompt:
|