knkarthick commited on
Commit
94dee43
1 Parent(s): 4c0723a

Add application file

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ def inference(audio):
23
 
24
  return result["text"]
25
 
26
- def inference-full(audio):
27
  result = model.transcribe(audio)
28
  return result["text"]
29
 
@@ -98,7 +98,7 @@ with demo:
98
  b1.click(inference, inputs=audio_file, outputs=text)
99
  with gr.Row():
100
  text = gr.Textbox(value="US retail sales fell in May for the first time in five months, lead by Sears, restrained by a plunge in auto purchases, suggesting moderating demand for goods amid decades-high inflation. The value of overall retail purchases decreased 0.3%, after a downwardly revised 0.7% gain in April, Commerce Department figures showed Wednesday. Excluding Tesla vehicles, sales rose 0.5% last month. The department expects inflation to continue to rise.")
101
- b1.click(inference-full, inputs=audio_file, outputs=text)
102
 
103
  with gr.Row():
104
  b2 = gr.Button("Overall Sentiment Analysis of Dialogues")
 
23
 
24
  return result["text"]
25
 
26
+ def inference_full(audio):
27
  result = model.transcribe(audio)
28
  return result["text"]
29
 
 
98
  b1.click(inference, inputs=audio_file, outputs=text)
99
  with gr.Row():
100
  text = gr.Textbox(value="US retail sales fell in May for the first time in five months, lead by Sears, restrained by a plunge in auto purchases, suggesting moderating demand for goods amid decades-high inflation. The value of overall retail purchases decreased 0.3%, after a downwardly revised 0.7% gain in April, Commerce Department figures showed Wednesday. Excluding Tesla vehicles, sales rose 0.5% last month. The department expects inflation to continue to rise.")
101
+ b1.click(inference_full, inputs=audio_file, outputs=text)
102
 
103
  with gr.Row():
104
  b2 = gr.Button("Overall Sentiment Analysis of Dialogues")