Spaces:
Running
Running
updating app v5
Browse files
app.py
CHANGED
@@ -13,6 +13,8 @@ DB_DIR = 'user_data' # Directory to store individual user data
|
|
13 |
os.makedirs(DB_DIR, exist_ok=True) # Ensure the directory exists
|
14 |
|
15 |
# Load the Hugging Face model
|
|
|
|
|
16 |
@st.cache_resource
|
17 |
def load_model():
|
18 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME, cache_dir="/tmp")
|
@@ -51,7 +53,7 @@ def save_user_data(user_id, data):
|
|
51 |
json.dump(data, file)
|
52 |
|
53 |
def main():
|
54 |
-
st.set_page_config(page_title='Ethical GPT Assistant', layout='wide')
|
55 |
|
56 |
st.image("./logo/images.jpeg", use_column_width=True)
|
57 |
|
|
|
13 |
os.makedirs(DB_DIR, exist_ok=True) # Ensure the directory exists
|
14 |
|
15 |
# Load the Hugging Face model
|
16 |
+
|
17 |
+
st.set_page_config(page_title='Ethical GPT Assistant', layout='wide')
|
18 |
@st.cache_resource
|
19 |
def load_model():
|
20 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME, cache_dir="/tmp")
|
|
|
53 |
json.dump(data, file)
|
54 |
|
55 |
def main():
|
56 |
+
#st.set_page_config(page_title='Ethical GPT Assistant', layout='wide')
|
57 |
|
58 |
st.image("./logo/images.jpeg", use_column_width=True)
|
59 |
|