Spaces:
Build error
Build error
mphycx
commited on
Commit
·
b85d554
1
Parent(s):
2a4db2f
fix opening chat
Browse files
app.py
CHANGED
|
@@ -95,9 +95,9 @@ def main():
|
|
| 95 |
result = result_to_dict(r, 1)
|
| 96 |
|
| 97 |
# concatenate reply
|
| 98 |
-
reply_summary = "Hello there. I'm
|
| 99 |
reply_summary += result["answer"]
|
| 100 |
-
reply_summary += "\n\nDo you have any
|
| 101 |
|
| 102 |
if len(st.session_state["past"]) == 1:
|
| 103 |
st.session_state["generated"][0] = reply_summary
|
|
|
|
| 95 |
result = result_to_dict(r, 1)
|
| 96 |
|
| 97 |
# concatenate reply
|
| 98 |
+
reply_summary = "Hello there. I'm pdfGPT-chat.\nHere is a summary of your PDF:\n\n"
|
| 99 |
reply_summary += result["answer"]
|
| 100 |
+
reply_summary += "\n\nDo you have any question about your PDF?"
|
| 101 |
|
| 102 |
if len(st.session_state["past"]) == 1:
|
| 103 |
st.session_state["generated"][0] = reply_summary
|