akopiler commited on
Commit
4d1cc01
·
verified ·
1 Parent(s): a905457

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -54,14 +54,14 @@ def morphing(inp, target, slider):
54
  down_width = int(frame_width/4)
55
  down_height = int(frame_height/2)
56
  down_points = (down_width, down_height)
57
- image = cv.resize(image, down_points, interpolation= cv.INTER_LINEAR)
58
  yield image
59
  # image = np.ones((240,240,3), np.uint8)
60
  # image[:] = [255, 124, 0]
61
  # yield image
62
 
63
- ww= 256 #int(frame_width/2)
64
- hh= 256 #int(frame_height/2)
65
 
66
  with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"])) as demo:
67
  gr.Markdown("Start choosing an input and target image for the morphing then click **Submit** to watch the output in slow motion.")
 
54
  down_width = int(frame_width/4)
55
  down_height = int(frame_height/2)
56
  down_points = (down_width, down_height)
57
+ image = cv.resize(image, (512,512), interpolation= cv.INTER_LINEAR)
58
  yield image
59
  # image = np.ones((240,240,3), np.uint8)
60
  # image[:] = [255, 124, 0]
61
  # yield image
62
 
63
+ ww= 512 #int(frame_width/2)
64
+ hh= 512 #int(frame_height/2)
65
 
66
  with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"])) as demo:
67
  gr.Markdown("Start choosing an input and target image for the morphing then click **Submit** to watch the output in slow motion.")