Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ from transformers import pipeline, BlipForConditionalGeneration, BlipProcessor
|
|
| 3 |
import torchaudio
|
| 4 |
from torchaudio.transforms import Resample
|
| 5 |
import torch
|
|
|
|
| 6 |
from io import BytesIO
|
| 7 |
from PIL import Image
|
| 8 |
from flask_cors import CORS
|
|
@@ -10,8 +11,6 @@ from flask_cors import CORS
|
|
| 10 |
# ย้าย cache ไปที่ตำแหน่งที่ถูกต้อง
|
| 11 |
# utils.move_cache()
|
| 12 |
|
| 13 |
-
from torch.nn.utils import parametrizations
|
| 14 |
-
|
| 15 |
app = Flask(__name__)
|
| 16 |
CORS(app)
|
| 17 |
|
|
|
|
| 3 |
import torchaudio
|
| 4 |
from torchaudio.transforms import Resample
|
| 5 |
import torch
|
| 6 |
+
from torch.nn.utils.parametrizations import weight_norm
|
| 7 |
from io import BytesIO
|
| 8 |
from PIL import Image
|
| 9 |
from flask_cors import CORS
|
|
|
|
| 11 |
# ย้าย cache ไปที่ตำแหน่งที่ถูกต้อง
|
| 12 |
# utils.move_cache()
|
| 13 |
|
|
|
|
|
|
|
| 14 |
app = Flask(__name__)
|
| 15 |
CORS(app)
|
| 16 |
|