Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
-
app =FastAPI()
|
| 3 |
-
@app.get("/")
|
| 4 |
import sqlite3
|
| 5 |
from hashlib import sha256
|
| 6 |
import streamlit as st
|
| 7 |
from openai import OpenAI
|
|
|
|
| 8 |
client = OpenAI()
|
| 9 |
# Step 1: Initialize the SQLite database
|
| 10 |
def init_db():
|
|
@@ -123,6 +122,4 @@ if st.button("Create Account"):
|
|
| 123 |
st.error("Please enter both a username and a password.")
|
| 124 |
|
| 125 |
# Close the database connection when done
|
| 126 |
-
conn.close()
|
| 127 |
-
def greet_json():
|
| 128 |
-
return {"hello":"World"}
|
|
|
|
| 1 |
from fastapi import FastAPI
|
|
|
|
|
|
|
| 2 |
import sqlite3
|
| 3 |
from hashlib import sha256
|
| 4 |
import streamlit as st
|
| 5 |
from openai import OpenAI
|
| 6 |
+
app =FastAPI()
|
| 7 |
client = OpenAI()
|
| 8 |
# Step 1: Initialize the SQLite database
|
| 9 |
def init_db():
|
|
|
|
| 122 |
st.error("Please enter both a username and a password.")
|
| 123 |
|
| 124 |
# Close the database connection when done
|
| 125 |
+
conn.close()
|
|
|
|
|
|