Spaces:
Sleeping
Sleeping
Commit
Β·
15b192f
1
Parent(s):
fd63c16
fix bug all
Browse files- Dockerfile +5 -4
- app.py +6 -1
- apt.txt +1 -0
Dockerfile
CHANGED
|
@@ -4,10 +4,11 @@ FROM python:3.11-slim
|
|
| 4 |
# Tetapkan direktori kerja di dalam container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Install git
|
| 8 |
-
RUN apt-get update &&
|
| 9 |
-
|
| 10 |
-
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
# Tambahkan direktori kerja ke dalam safe.directory
|
|
|
|
| 4 |
# Tetapkan direktori kerja di dalam container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Install git, git-lfs, dan utilitas dasar
|
| 8 |
+
RUN apt-get update && \
|
| 9 |
+
apt-get install -y git git-lfs && \
|
| 10 |
+
git lfs install && \
|
| 11 |
+
apt-get clean
|
| 12 |
|
| 13 |
|
| 14 |
# Tambahkan direktori kerja ke dalam safe.directory
|
app.py
CHANGED
|
@@ -304,7 +304,12 @@ def form():
|
|
| 304 |
if os.path.exists(temp_repo_path):
|
| 305 |
shutil.rmtree(temp_repo_path)
|
| 306 |
|
| 307 |
-
repo = Repository(local_dir=temp_repo_path,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 308 |
|
| 309 |
# --- PROSES FILE 'vikor_fix.xlsx' ---
|
| 310 |
vikor_path = os.path.join(temp_repo_path, 'data', 'vikor_fix.xlsx')
|
|
|
|
| 304 |
if os.path.exists(temp_repo_path):
|
| 305 |
shutil.rmtree(temp_repo_path)
|
| 306 |
|
| 307 |
+
repo = Repository(local_dir=temp_repo_path,
|
| 308 |
+
clone_from=REPO_ID,
|
| 309 |
+
use_auth_token=HF_TOKEN,
|
| 310 |
+
git_user="KeluhCerdas Bot",
|
| 311 |
+
git_email="bot@keluhcerdas.hf.space",
|
| 312 |
+
skip_lfs_files=True)
|
| 313 |
|
| 314 |
# --- PROSES FILE 'vikor_fix.xlsx' ---
|
| 315 |
vikor_path = os.path.join(temp_repo_path, 'data', 'vikor_fix.xlsx')
|
apt.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
git-lfs
|