wileewang commited on
Commit
062a98f
·
verified ·
1 Parent(s): 04cfec6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -14
app.py CHANGED
@@ -212,7 +212,7 @@ threading.Thread(target=delete_old_files, daemon=True).start()
212
  # examples_images = [["example_images/beach.png"], ["example_images/street.png"], ["example_images/camping.png"]]
213
 
214
  with gr.Blocks() as demo:
215
- gr.Markdown("""
216
  <div style="text-align: center; font-size: 32px; font-weight: bold; margin-bottom: 20px;">
217
  TransPixar + CogVideoX-5B Huggingface Space🤗
218
  </div>
@@ -227,13 +227,6 @@ with gr.Blocks() as demo:
227
  """)
228
  with gr.Row():
229
  with gr.Column():
230
- # with gr.Accordion("I2V: Image Input (cannot be used simultaneously with video input)", open=False):
231
- # image_input = gr.Image(label="Input Image (will be cropped to 720 * 480)")
232
- # examples_component_images = gr.Examples(examples_images, inputs=[image_input], cache_examples=False)
233
- # with gr.Accordion("V2V: Video Input (cannot be used simultaneously with image input)", open=False):
234
- # video_input = gr.Video(label="Input Video (will be cropped to 49 frames, 6 seconds at 8fps)")
235
- # strength = gr.Slider(0.1, 1.0, value=0.8, step=0.01, label="Strength")
236
- # examples_component_videos = gr.Examples(examples_videos, inputs=[video_input], cache_examples=False)
237
  prompt = gr.Textbox(label="Prompt (Less than 200 Words)", placeholder="Enter your prompt here", lines=5)
238
  with gr.Group():
239
  with gr.Column():
@@ -241,12 +234,6 @@ with gr.Blocks() as demo:
241
  seed_param = gr.Number(
242
  label="Inference Seed (Enter a positive number, -1 for random)", value=-1
243
  )
244
- # with gr.Row():
245
- # enable_scale = gr.Checkbox(label="Super-Resolution (720 × 480 -> 2880 × 1920)", value=False)
246
- # enable_rife = gr.Checkbox(label="Frame Interpolation (8fps -> 16fps)", value=False)
247
- # gr.Markdown(
248
- # "✨In this demo, we use [RIFE](https://github.com/hzwer/ECCV2022-RIFE) for frame interpolation and [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN) for upscaling(Super-Resolution).<br>&nbsp;&nbsp;&nbsp;&nbsp;The entire process is based on open-source solutions."
249
- # )
250
 
251
  generate_button = gr.Button("🎬 Generate Video")
252
 
 
212
  # examples_images = [["example_images/beach.png"], ["example_images/street.png"], ["example_images/camping.png"]]
213
 
214
  with gr.Blocks() as demo:
215
+ gr.HTML("""
216
  <div style="text-align: center; font-size: 32px; font-weight: bold; margin-bottom: 20px;">
217
  TransPixar + CogVideoX-5B Huggingface Space🤗
218
  </div>
 
227
  """)
228
  with gr.Row():
229
  with gr.Column():
 
 
 
 
 
 
 
230
  prompt = gr.Textbox(label="Prompt (Less than 200 Words)", placeholder="Enter your prompt here", lines=5)
231
  with gr.Group():
232
  with gr.Column():
 
234
  seed_param = gr.Number(
235
  label="Inference Seed (Enter a positive number, -1 for random)", value=-1
236
  )
 
 
 
 
 
 
237
 
238
  generate_button = gr.Button("🎬 Generate Video")
239