awacke1 commited on
Commit
9bc739e
·
1 Parent(s): efb92ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)