Spaces:
Running
Running
Deniel Dimitrov
commited on
Commit
·
0f206cd
1
Parent(s):
f68f3d9
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def convert_to_ascii(image, text_size):
|
|
26 |
|
27 |
|
28 |
def image_to_ascii(file, text_size):
|
29 |
-
image = Image.open(file.name)
|
30 |
return convert_to_ascii(image, int(text_size))
|
31 |
|
32 |
|
@@ -39,3 +39,4 @@ iface = gr.Interface(
|
|
39 |
)
|
40 |
|
41 |
iface.launch()
|
|
|
|
26 |
|
27 |
|
28 |
def image_to_ascii(file, text_size):
|
29 |
+
image = Image.open(file[0].name) # Modify this line to handle the file object correctly
|
30 |
return convert_to_ascii(image, int(text_size))
|
31 |
|
32 |
|
|
|
39 |
)
|
40 |
|
41 |
iface.launch()
|
42 |
+
|