Commit
•
a7a3612
1
Parent(s):
005b1f6
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ print("Tokenizer loaded successfully")
|
|
43 |
|
44 |
|
45 |
def tranformer(image):
|
46 |
-
|
47 |
temp_file, temp_file_path = tempfile.mkstemp(suffix=".jpg")
|
48 |
os.close(temp_file)
|
49 |
image.save(temp_file_path)
|
|
|
43 |
|
44 |
|
45 |
def tranformer(image):
|
46 |
+
image = Image.fromarray(image)
|
47 |
temp_file, temp_file_path = tempfile.mkstemp(suffix=".jpg")
|
48 |
os.close(temp_file)
|
49 |
image.save(temp_file_path)
|