AItool commited on
Commit
2a82169
·
verified ·
1 Parent(s): ed550f5

removed output path

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -49,8 +49,8 @@ with gr.Blocks(title="RIFE Interpolation") as demo:
49
  input_imageB = gr.Image(type="filepath", value=str(FRAME2), label="Image B")
50
  run_btn = gr.Button("Interpolate")
51
  result_img = gr.Image(type="filepath", label="Interpolated GIF")
52
- result_path = gr.Textbox(label="Output path", interactive=False)
53
- run_btn.click(interpolate_image, [input_imageA, input_imageB], [result_img, result_path])
54
 
55
  with gr.Tab("Upload your images"):
56
  gr.Markdown("### Upload any two images")
@@ -58,8 +58,8 @@ with gr.Blocks(title="RIFE Interpolation") as demo:
58
  user_B = gr.Image(type="filepath", label="Image B")
59
  run_btn2 = gr.Button("Interpolate")
60
  user_img = gr.Image(type="filepath", label="Interpolated GIF")
61
- user_path = gr.Textbox(label="Output path", interactive=False)
62
- run_btn2.click(interpolate_image, [user_A, user_B], [user_img, user_path])
63
  gr.HTML("""<div style="margin: 0.75em 0;"><a href="https://www.buymeacoffee.com/Artgen" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a></div>
64
  <div style="margin: 0.75em 0;">But what would really help me is a <strong>PRO subscription</strong> to Google Colab, Kaggle or Hugging Face. Many thanks.</div>""")
65
 
 
49
  input_imageB = gr.Image(type="filepath", value=str(FRAME2), label="Image B")
50
  run_btn = gr.Button("Interpolate")
51
  result_img = gr.Image(type="filepath", label="Interpolated GIF")
52
+ # result_path = gr.Textbox(label="Output path", interactive=False)
53
+ run_btn.click(interpolate_image, [input_imageA, input_imageB], [result_img, str(input_imageA)])
54
 
55
  with gr.Tab("Upload your images"):
56
  gr.Markdown("### Upload any two images")
 
58
  user_B = gr.Image(type="filepath", label="Image B")
59
  run_btn2 = gr.Button("Interpolate")
60
  user_img = gr.Image(type="filepath", label="Interpolated GIF")
61
+ # user_path = gr.Textbox(label="Output path", interactive=False)
62
+ run_btn2.click(interpolate_image, [user_A, user_B], [user_img, str(input_imageA)])
63
  gr.HTML("""<div style="margin: 0.75em 0;"><a href="https://www.buymeacoffee.com/Artgen" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a></div>
64
  <div style="margin: 0.75em 0;">But what would really help me is a <strong>PRO subscription</strong> to Google Colab, Kaggle or Hugging Face. Many thanks.</div>""")
65