Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
mrfakename
commited on
Commit
•
745942d
1
Parent(s):
b9f2954
Update app.py
Browse files
app.py
CHANGED
@@ -58,13 +58,13 @@ def del_db(txt):
|
|
58 |
api = HfApi(
|
59 |
token=os.getenv('HF_TOKEN')
|
60 |
)
|
|
|
|
|
61 |
api.delete_file(
|
62 |
path_in_repo='database.db',
|
63 |
repo_id=os.getenv('DATASET_ID'),
|
64 |
repo_type='dataset'
|
65 |
)
|
66 |
-
os.remove('database.db')
|
67 |
-
create_db()
|
68 |
return 'Delete DB'
|
69 |
theme = gr.themes.Base(
|
70 |
font=[gr.themes.GoogleFont('Libre Franklin'), gr.themes.GoogleFont('Public Sans'), 'system-ui', 'sans-serif'],
|
|
|
58 |
api = HfApi(
|
59 |
token=os.getenv('HF_TOKEN')
|
60 |
)
|
61 |
+
os.remove('database.db')
|
62 |
+
create_db()
|
63 |
api.delete_file(
|
64 |
path_in_repo='database.db',
|
65 |
repo_id=os.getenv('DATASET_ID'),
|
66 |
repo_type='dataset'
|
67 |
)
|
|
|
|
|
68 |
return 'Delete DB'
|
69 |
theme = gr.themes.Base(
|
70 |
font=[gr.themes.GoogleFont('Libre Franklin'), gr.themes.GoogleFont('Public Sans'), 'system-ui', 'sans-serif'],
|