Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,6 @@ def read_sql_query(sql,db):
|
|
| 51 |
print(row)
|
| 52 |
return rows
|
| 53 |
|
| 54 |
-
|
| 55 |
st.set_page_config("DataChat: Explore Your Database")
|
| 56 |
st.header("chat with your sql database")
|
| 57 |
|
|
@@ -70,7 +69,8 @@ def save_uploaded_file(uploaded_file):
|
|
| 70 |
return file_path
|
| 71 |
|
| 72 |
# File uploader component
|
| 73 |
-
|
|
|
|
| 74 |
|
| 75 |
if uploaded_file is not None:
|
| 76 |
# Save the uploaded file
|
|
|
|
| 51 |
print(row)
|
| 52 |
return rows
|
| 53 |
|
|
|
|
| 54 |
st.set_page_config("DataChat: Explore Your Database")
|
| 55 |
st.header("chat with your sql database")
|
| 56 |
|
|
|
|
| 69 |
return file_path
|
| 70 |
|
| 71 |
# File uploader component
|
| 72 |
+
st.sidebar.header("Database Upload")
|
| 73 |
+
uploaded_file = st.sidebar.file_uploader("Upload SQLite Database", type=["db"])
|
| 74 |
|
| 75 |
if uploaded_file is not None:
|
| 76 |
# Save the uploaded file
|