Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,10 @@
|
|
1 |
-
|
2 |
-
import torch
|
3 |
|
4 |
-
|
|
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
torch_dtype=torch.float16
|
12 |
-
)
|
|
|
1 |
+
import os
|
|
|
2 |
|
3 |
+
# GLIBCXX gΓΌncellemesi
|
4 |
+
os.system("apt update && apt install -y libstdc++6")
|
5 |
|
6 |
+
# bitsandbytes kΓΌtΓΌphanesini tekrar yΓΌkleme
|
7 |
+
os.system("pip install --upgrade bitsandbytes")
|
8 |
+
|
9 |
+
# PyTorch'u CUDA destekli yükleme (Hugging Face GPU için)
|
10 |
+
os.system("pip install --upgrade --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118")
|
|
|
|