wsj1995 commited on
Commit
a25e616
·
verified ·
1 Parent(s): b6beaf2

Update scripts/inference.py

Browse files
Files changed (1) hide show
  1. scripts/inference.py +2 -2
scripts/inference.py CHANGED
@@ -9,7 +9,7 @@ This script can be run from the command line with the following command:
9
 
10
  python scripts/app.py
11
  """
12
-
13
  import gradio as gr
14
  import argparse
15
  import copy
@@ -405,7 +405,7 @@ def inference(cfg, image_processor, audio_processor, pipeline, audioproj, save_d
405
  tensor_to_video(tensor_result, output_file, audio_path)
406
  return output_file
407
 
408
-
409
  def get_model(cfg: argparse.Namespace) -> None:
410
  """
411
  Trains the model using the given configuration (cfg).
 
9
 
10
  python scripts/app.py
11
  """
12
+ import spaces
13
  import gradio as gr
14
  import argparse
15
  import copy
 
405
  tensor_to_video(tensor_result, output_file, audio_path)
406
  return output_file
407
 
408
+ @spaces.GPU()
409
  def get_model(cfg: argparse.Namespace) -> None:
410
  """
411
  Trains the model using the given configuration (cfg).