Pengwei Li commited on
Commit
2634b87
1 Parent(s): a6a12a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -16,9 +16,10 @@ 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 = 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,4 +28,4 @@ gr.Interface(
27
  article=article,
28
  title=title,
29
  examples=examples,
30
- description=description).launch(share=True)
 
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
  article=article,
29
  title=title,
30
  examples=examples,
31
+ description=description).launch(enable_queue=True,cache_examples=False)