candlend commited on
Commit
c20bf4c
β€’
1 Parent(s): a337b79

api; iframe resizer

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. header.html +1 -0
app.py CHANGED
@@ -86,7 +86,7 @@ with app:
86
  tts_submit = gr.Button("合成", variant="primary")
87
  tts_output = gr.Audio(label="Output")
88
  tts_model = gr.Markdown("")
89
- tts_submit.click(infer, [tts_input1], [tts_output])
90
  choice_model.change(change_model, inputs=[
91
  choice_model], outputs=[tts_model])
92
  gr.HTML('''
 
86
  tts_submit = gr.Button("合成", variant="primary")
87
  tts_output = gr.Audio(label="Output")
88
  tts_model = gr.Markdown("")
89
+ tts_submit.click(infer, [tts_input1], [tts_output], api_name="infer")
90
  choice_model.change(change_model, inputs=[
91
  choice_model], outputs=[tts_model])
92
  gr.HTML('''
header.html CHANGED
@@ -24,4 +24,5 @@
24
  </div>
25
  </div>
26
  </div>
 
27
  </div>
 
24
  </div>
25
  </div>
26
  </div>
27
+ <script src="https://raw.githubusercontent.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.contentWindow.min.js"></script>
28
  </div>