Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,12 @@
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
import torch
|
4 |
from PIL import Image
|
|
|
1 |
+
# Uninstall any existing conflicting installations
|
2 |
+
!pip uninstall torch torchaudio -y
|
3 |
|
4 |
+
# Install torch and torchaudio with compatible versions for Colab's environment
|
5 |
+
!pip install torch==2.5.0+cu121 torchaudio==2.5.0+cu121 -f https://download.pytorch.org/whl/torch_stable.html --quiet
|
6 |
+
|
7 |
+
# Install the remaining required libraries
|
8 |
+
!pip install Pillow numpy gradio transformers --quiet
|
9 |
+
!pip install git+https://github.com/doevent/Real-ESRGAN.git --quiet
|
10 |
|
11 |
import torch
|
12 |
from PIL import Image
|