Spaces:
Runtime error
Runtime error
fix: initiate a logger
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import threading
|
|
6 |
import time
|
7 |
import random
|
8 |
import inspect
|
|
|
9 |
|
10 |
from requests import HTTPError
|
11 |
from dataclasses import asdict
|
@@ -87,6 +88,8 @@ from typing import (
|
|
87 |
overload,
|
88 |
)
|
89 |
|
|
|
|
|
90 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
91 |
DATASET_REPO_URL = os.getenv("DATASET_REPO_URL")
|
92 |
MODEL_NAME = os.getenv("MODEL_NAME")
|
|
|
6 |
import time
|
7 |
import random
|
8 |
import inspect
|
9 |
+
import logging
|
10 |
|
11 |
from requests import HTTPError
|
12 |
from dataclasses import asdict
|
|
|
88 |
overload,
|
89 |
)
|
90 |
|
91 |
+
logger = logging.getLogger(__name__)
|
92 |
+
|
93 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
94 |
DATASET_REPO_URL = os.getenv("DATASET_REPO_URL")
|
95 |
MODEL_NAME = os.getenv("MODEL_NAME")
|