gokaygokay commited on
Commit
0855740
1 Parent(s): 7e690c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -357,7 +357,7 @@ def process_video(input_video, resolution, num_inference_steps, strength, hdr, g
357
  progress(1.0, desc=f"Error: {str(e)}")
358
  return None
359
 
360
- @spaces.GPU
361
  def gradio_process_media(input_media, resolution, num_inference_steps, strength, hdr, guidance_scale, max_frames, frame_interval, preserve_frames, progress=gr.Progress()):
362
  abort_event.clear() # Clear the abort flag at the start of a new job
363
  if input_media is None:
@@ -401,19 +401,19 @@ def gradio_process_media(input_media, resolution, num_inference_steps, strength,
401
  else:
402
  return None, "Error occurred during image processing."
403
 
 
 
 
 
 
 
 
 
 
 
404
  # Update the Gradio interface
405
  with gr.Blocks(css=css, theme=gr.themes.Default(primary_hue="blue")) as iface:
406
- gr.Markdown(
407
- """
408
- # SimpleSlowVideoUpscaler
409
-
410
- Built by [Hrishi](https://twitter.com/hrishioa) and Claude
411
-
412
- This project is based on [gokaygokay/Tile-Upscaler](https://huggingface.co/spaces/gokaygokay/Tile-Upscaler), which in turn is inspired by ideas from [@philz1337x/clarity-upscaler](https://github.com/philz1337x/clarity-upscaler) and [@BatouResearch/controlnet-tile-upscale](https://github.com/BatouResearch/controlnet-tile-upscale).
413
-
414
- If you find this project useful, please consider [starring it on GitHub](https://github.com/hrishioa/SimpleSlowVideoUpscaler)!
415
- """
416
- )
417
 
418
  with gr.Row():
419
  with gr.Column(scale=2):
 
357
  progress(1.0, desc=f"Error: {str(e)}")
358
  return None
359
 
360
+ @spaces.GPU(duration=200)
361
  def gradio_process_media(input_media, resolution, num_inference_steps, strength, hdr, guidance_scale, max_frames, frame_interval, preserve_frames, progress=gr.Progress()):
362
  abort_event.clear() # Clear the abort flag at the start of a new job
363
  if input_media is None:
 
401
  else:
402
  return None, "Error occurred during image processing."
403
 
404
+ title = """
405
+ <h1 align="center">Simple Slow Video Upscaler</h1>
406
+ <p align="center">
407
+ <a href="https://twitter.com/hrishioa" target="_blank">[Hrishi]</a>
408
+ <a href="https://huggingface.co/spaces/gokaygokay/Tile-Upscaler" target="_blank">[gokaygokay/Tile-Upscaler]</a>
409
+ <a href="https://github.com/philz1337x/clarity-upscaler" target="_blank">[philz1337x]</a>
410
+ <a href="https://github.com/BatouResearch/controlnet-tile-upscale" target="_blank">[BatouResearch]</a>
411
+ <a href="https://github.com/hrishioa/SimpleSlowVideoUpscaler" target="_blank">[Hrishi GitHub]</a>
412
+ </p>
413
+ """
414
  # Update the Gradio interface
415
  with gr.Blocks(css=css, theme=gr.themes.Default(primary_hue="blue")) as iface:
416
+ gr.HTML(title)
 
 
 
 
 
 
 
 
 
 
417
 
418
  with gr.Row():
419
  with gr.Column(scale=2):