xierui.0097 commited on
Commit
4335e0e
·
1 Parent(s): 5f2ef73

Add application file

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import random
4
 
5
  import gradio as gr
6
 
7
- from enhance_a_video import VEnhancer
8
 
9
  examples = [
10
  ["prompts/astronaut.mp4", "An astronaut flying in space, featuring a steady and smooth perspective", 4, 24, 250],
@@ -19,7 +19,7 @@ examples = [
19
 
20
  def venhancer_demo(result_dir="./tmp/", version="v1"):
21
  css = """#input_video {max-width: 1024px !important} #output_vid {max-width: 2048px; max-height:1280px}"""
22
- venhancer = VEnhancer(result_dir, version=version)
23
  with gr.Blocks(analytics_enabled=False, css=css) as venhancer_iface:
24
  gr.Markdown(
25
  "<div align='center'> <h1> VEnhancer </span> </h1> \
 
4
 
5
  import gradio as gr
6
 
7
+ from video_super_resolution.scripts.inference_sr import VEnhancer_sr
8
 
9
  examples = [
10
  ["prompts/astronaut.mp4", "An astronaut flying in space, featuring a steady and smooth perspective", 4, 24, 250],
 
19
 
20
  def venhancer_demo(result_dir="./tmp/", version="v1"):
21
  css = """#input_video {max-width: 1024px !important} #output_vid {max-width: 2048px; max-height:1280px}"""
22
+ venhancer = VEnhancer_sr(result_dir, version=version)
23
  with gr.Blocks(analytics_enabled=False, css=css) as venhancer_iface:
24
  gr.Markdown(
25
  "<div align='center'> <h1> VEnhancer </span> </h1> \