Spaces:
Build error
Build error
Linted code
Browse files
app.py
CHANGED
|
@@ -11,8 +11,7 @@ try:
|
|
| 11 |
os.environ[key] = value
|
| 12 |
except FileNotFoundError as e:
|
| 13 |
print(e)
|
| 14 |
-
print("./streamlit/secrets.toml not found. Assuming secrets are already available"
|
| 15 |
-
"as environmental variables...")
|
| 16 |
|
| 17 |
# Initialize message history
|
| 18 |
st.header("Chat with André's research 💬 📚")
|
|
@@ -20,6 +19,7 @@ st.header("Chat with André's research 💬 📚")
|
|
| 20 |
if "messages" not in st.session_state.keys(): # Initialize the chat message history
|
| 21 |
st.session_state.messages = [{"role": "assistant", "content": "Ask me a question about André's research!"}]
|
| 22 |
|
|
|
|
| 23 |
def main():
|
| 24 |
# setup logger sidebar
|
| 25 |
# st.sidebar.text("Standard output log:")
|
|
|
|
| 11 |
os.environ[key] = value
|
| 12 |
except FileNotFoundError as e:
|
| 13 |
print(e)
|
| 14 |
+
print("./streamlit/secrets.toml not found. Assuming secrets are already available" "as environmental variables...")
|
|
|
|
| 15 |
|
| 16 |
# Initialize message history
|
| 17 |
st.header("Chat with André's research 💬 📚")
|
|
|
|
| 19 |
if "messages" not in st.session_state.keys(): # Initialize the chat message history
|
| 20 |
st.session_state.messages = [{"role": "assistant", "content": "Ask me a question about André's research!"}]
|
| 21 |
|
| 22 |
+
|
| 23 |
def main():
|
| 24 |
# setup logger sidebar
|
| 25 |
# st.sidebar.text("Standard output log:")
|