Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
always update db
Browse files
app.py
CHANGED
@@ -194,12 +194,10 @@ async def sync_data():
|
|
194 |
[likes, downloads, model_id])
|
195 |
db.commit()
|
196 |
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
else:
|
202 |
-
print("No new models found")
|
203 |
|
204 |
app = FastAPI()
|
205 |
app.add_middleware(
|
|
|
194 |
[likes, downloads, model_id])
|
195 |
db.commit()
|
196 |
|
197 |
+
print("Updating DB repository")
|
198 |
+
subprocess.Popen(
|
199 |
+
"git add . && git commit --amend -m 'update' && git push --force", cwd=DB_FOLDER, shell=True)
|
200 |
+
|
|
|
|
|
201 |
|
202 |
app = FastAPI()
|
203 |
app.add_middleware(
|