Pengwei Li commited on
Commit
4f2f92f
1 Parent(s): 751f371

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -16,10 +16,9 @@ examples = [
16
  io1 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_800m-es-en-st-asr-bt_h1_2022")
17
 
18
  def inference(text,model):
19
- outtext = io1(text)
20
  return outtext
21
 
22
-
23
  gr.Interface(
24
  inference,
25
  [gr.inputs.Audio(label="Input",type="filepath"),gr.inputs.Dropdown(choices=["xm_transformer_s2ut_800m-es-en-st-asr-bt_h1_2022"], type="value", default="xm_transformer_s2ut_800m-es-en-st-asr-bt_h1_2022", label="model")
@@ -28,4 +27,4 @@ gr.Interface(
28
  article=article,
29
  title=title,
30
  examples=examples,
31
- description=description).launch(enable_queue=True,cache_examples=False)
 
16
  io1 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_800m-es-en-st-asr-bt_h1_2022")
17
 
18
  def inference(text,model):
19
+ outtext = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_800m-es-en-st-asr-bt_h1_2022")
20
  return outtext
21
 
 
22
  gr.Interface(
23
  inference,
24
  [gr.inputs.Audio(label="Input",type="filepath"),gr.inputs.Dropdown(choices=["xm_transformer_s2ut_800m-es-en-st-asr-bt_h1_2022"], type="value", default="xm_transformer_s2ut_800m-es-en-st-asr-bt_h1_2022", label="model")
 
27
  article=article,
28
  title=title,
29
  examples=examples,
30
+ description=description).launch()