Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def app():
|
|
38 |
|
39 |
# Render the card if an image has been uploaded and a title has been provided
|
40 |
if uploaded_file and title:
|
41 |
-
image_path = f'{uploaded_file.name}'
|
42 |
with open(image_path, 'wb') as f:
|
43 |
f.write(uploaded_file.getbuffer())
|
44 |
card = render_card(image_path, title, subtitle)
|
|
|
38 |
|
39 |
# Render the card if an image has been uploaded and a title has been provided
|
40 |
if uploaded_file and title:
|
41 |
+
image_path = f'tmp/{uploaded_file.name}'
|
42 |
with open(image_path, 'wb') as f:
|
43 |
f.write(uploaded_file.getbuffer())
|
44 |
card = render_card(image_path, title, subtitle)
|