Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def main():
|
|
45 |
# check if file has been uploaded
|
46 |
if uploaded_file is not None:
|
47 |
# load the image
|
48 |
-
image =
|
49 |
|
50 |
# context as prompt
|
51 |
prompt = generate_captions(image)
|
|
|
45 |
# check if file has been uploaded
|
46 |
if uploaded_file is not None:
|
47 |
# load the image
|
48 |
+
image = Image.open(uploaded_file).convert("RGB")
|
49 |
|
50 |
# context as prompt
|
51 |
prompt = generate_captions(image)
|