rathapech commited on
Commit
afff762
·
verified ·
1 Parent(s): 6c76059

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,8 +4,8 @@ from helper import load_image_from_url, render_results_in_image
4
  from helper import summarize_predictions_natural_language
5
 
6
  od_pipe = pipeline("object-detection", model="facebook/detr-resnet-50")
7
- tts_pipe = pipeline("text-to-speech",
8
- model="kakao-enterprise/vits-ljs")
9
 
10
  def get_pipeline_prediction(pil_image):
11
 
@@ -15,8 +15,8 @@ def get_pipeline_prediction(pil_image):
15
 
16
  processed_image = render_results_in_image(pil_image,
17
  pipeline_output)
18
- gen_audio = tts_pipe(text)
19
- rate= gen_audio["sampling_rate"]
20
  return processed_image, text
21
  #, (rate, gen_audio["audio"][0])
22
 
 
4
  from helper import summarize_predictions_natural_language
5
 
6
  od_pipe = pipeline("object-detection", model="facebook/detr-resnet-50")
7
+ #tts_pipe = pipeline("text-to-speech",
8
+ # model="kakao-enterprise/vits-ljs")
9
 
10
  def get_pipeline_prediction(pil_image):
11
 
 
15
 
16
  processed_image = render_results_in_image(pil_image,
17
  pipeline_output)
18
+ #gen_audio = tts_pipe(text)
19
+ #rate= gen_audio["sampling_rate"]
20
  return processed_image, text
21
  #, (rate, gen_audio["audio"][0])
22