Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,8 @@ from flask_bcrypt import Bcrypt
|
|
| 4 |
from flask_mail import Mail, Message
|
| 5 |
import openai
|
| 6 |
from flask import Flask
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# Streamlit Configuration
|
| 9 |
st.set_page_config(page_title="WDWT?")
|
|
@@ -252,4 +254,9 @@ elif page == "Decide":
|
|
| 252 |
issue_id = st.number_input("Issue ID", min_value=1, step=1)
|
| 253 |
decide(issue_id)
|
| 254 |
elif page == "Settings":
|
| 255 |
-
settings()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
from flask_mail import Mail, Message
|
| 5 |
import openai
|
| 6 |
from flask import Flask
|
| 7 |
+
with app.app_context():
|
| 8 |
+
db.create_all()
|
| 9 |
|
| 10 |
# Streamlit Configuration
|
| 11 |
st.set_page_config(page_title="WDWT?")
|
|
|
|
| 254 |
issue_id = st.number_input("Issue ID", min_value=1, step=1)
|
| 255 |
decide(issue_id)
|
| 256 |
elif page == "Settings":
|
| 257 |
+
settings()
|
| 258 |
+
|
| 259 |
+
# Ensure tables are created
|
| 260 |
+
if __name__ == '__main__':
|
| 261 |
+
with app.app_context():
|
| 262 |
+
db.create_all()
|