Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from PIL import Image
|
|
4 |
import os
|
5 |
|
6 |
# Lấy giá trị của biến môi trường
|
7 |
-
model_name = os.getenv("
|
8 |
|
9 |
# Khởi tạo pipeline
|
10 |
pipe = pipeline("image-classification", model=model_name)
|
|
|
4 |
import os
|
5 |
|
6 |
# Lấy giá trị của biến môi trường
|
7 |
+
model_name = os.getenv("Model_name") # Lấy giá trị của biến môi trường
|
8 |
|
9 |
# Khởi tạo pipeline
|
10 |
pipe = pipeline("image-classification", model=model_name)
|