Update app.py
Browse files
app.py
CHANGED
@@ -130,8 +130,8 @@ with st.sidebar:
|
|
130 |
["1984 - George Orwell", "The Almanac of Naval Ravikant - Eric Jorgenson"]
|
131 |
)
|
132 |
# update st.empty() variables from earlier
|
133 |
-
BOOK_NAME.text
|
134 |
-
AUTHOR_NAME.text
|
135 |
|
136 |
api_key = st.text_input(label = "Paste your OpenAI API key here to get started",
|
137 |
type = "password",
|
|
|
130 |
["1984 - George Orwell", "The Almanac of Naval Ravikant - Eric Jorgenson"]
|
131 |
)
|
132 |
# update st.empty() variables from earlier
|
133 |
+
BOOK_NAME.text(book.split("-")[0][:-1]) # "1984 - George Orwell" -> "1984"
|
134 |
+
AUTHOR_NAME.text(book.split("-")[1][1:]) # "1984 - George Orwell" -> "George Orwell"
|
135 |
|
136 |
api_key = st.text_input(label = "Paste your OpenAI API key here to get started",
|
137 |
type = "password",
|