aagoluoglu commited on
Commit
b0b192f
·
1 Parent(s): f4e48c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -126,7 +126,8 @@ def server(input: Inputs, output: Outputs, session: Session):
126
  """Displays the uploaded image"""
127
  img_src = uploaded_image_path()
128
  if img_src:
129
- img: ImgData = {"src": str(dir / uploaded_image_path()), "width": "50px"}
 
130
  print("IMAGE", img)
131
  return img
132
  else:
 
126
  """Displays the uploaded image"""
127
  img_src = uploaded_image_path()
128
  if img_src:
129
+ dir = Path(__file__).resolve().parent
130
+ img: ImgData = {"src": str(dir / img_src), "width": "50px"}
131
  print("IMAGE", img)
132
  return img
133
  else: