Skip to content

Commit

Permalink
fix: redirect to drakechat
Browse files Browse the repository at this point in the history
  • Loading branch information
kausthub-kannan committed Jun 1, 2024
1 parent 259b1d5 commit 0c33fc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/upload_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
notes = drake.create_notes(documents)
encoded_text = notes.encode('utf-8')
st.success("Notes generated successfully")
if st.download_button(
st.download_button(
label="Download your notes",
data=encoded_text,
file_name='your_notes.md',
mime='text/markdown',
):
st.switch_page("pages/chat.py")
)
st.page_link("pages/chat.py", label="Chat with Drake")
except Exception as e:
print(e)
st.error("Error in generating notes")
Expand Down

0 comments on commit 0c33fc6

Please # to comment.