Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,10 @@ from pathlib import Path
|
|
| 5 |
|
| 6 |
import requests
|
| 7 |
from pyngrok import conf, ngrok
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
|
| 10 |
CONFIG = {
|
| 11 |
"commit": "a9eab236d7e8afa4d6205127904a385b2c43bb24",
|
| 12 |
"use_cloudflare_tunnel": False,
|
|
@@ -14,8 +16,14 @@ CONFIG = {
|
|
| 14 |
"ngrok_token": "",
|
| 15 |
"username": "",
|
| 16 |
"password": "",
|
|
|
|
|
|
|
|
|
|
| 17 |
}
|
| 18 |
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
def download_file(url, dest_path):
|
| 21 |
try:
|
|
|
|
| 5 |
|
| 6 |
import requests
|
| 7 |
from pyngrok import conf, ngrok
|
| 8 |
+
# Import-Anweisungen
|
| 9 |
+
from google_drive import google_drive_authenticate_and_select_folder
|
| 10 |
|
| 11 |
+
# Definieren Sie die CONFIG-Variable
|
| 12 |
CONFIG = {
|
| 13 |
"commit": "a9eab236d7e8afa4d6205127904a385b2c43bb24",
|
| 14 |
"use_cloudflare_tunnel": False,
|
|
|
|
| 16 |
"ngrok_token": "",
|
| 17 |
"username": "",
|
| 18 |
"password": "",
|
| 19 |
+
"main_pth": "",
|
| 20 |
+
"model_path": "",
|
| 21 |
+
"blasphemy": "blasphemy_1"
|
| 22 |
}
|
| 23 |
|
| 24 |
+
# Verwenden Sie die google_drive_authenticate_and_select_folder()-Funktion, um den Google Drive-Ordner auszuwählen und die CONFIG-Variable zu aktualisieren
|
| 25 |
+
CONFIG["main_pth"] = google_drive_authenticate_and_select_folder()
|
| 26 |
+
|
| 27 |
|
| 28 |
def download_file(url, dest_path):
|
| 29 |
try:
|