Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -56,13 +56,13 @@ app.logger.info('Model path: ' + model_path)
|
|
56 |
|
57 |
DATASET_REPO_URL = "https://huggingface.co/datasets/muryshev/saiga-chat"
|
58 |
DATA_FILENAME = "data.csv"
|
59 |
-
DATA_FILE = os.path.join("
|
60 |
|
61 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
62 |
app.logger.info("hfh: "+huggingface_hub.__version__)
|
63 |
|
64 |
repo = Repository(
|
65 |
-
local_dir="
|
66 |
)
|
67 |
|
68 |
def log(request: str = '', response: str = ''):
|
|
|
56 |
|
57 |
DATASET_REPO_URL = "https://huggingface.co/datasets/muryshev/saiga-chat"
|
58 |
DATA_FILENAME = "data.csv"
|
59 |
+
DATA_FILE = os.path.join("dataset", DATA_FILENAME)
|
60 |
|
61 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
62 |
app.logger.info("hfh: "+huggingface_hub.__version__)
|
63 |
|
64 |
repo = Repository(
|
65 |
+
local_dir="dataset", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
66 |
)
|
67 |
|
68 |
def log(request: str = '', response: str = ''):
|