huazizai commited on
Commit
a0fda68
1 Parent(s): 6685719

开启api,三Q

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ logging.getLogger("httpcore").setLevel(logging.ERROR)
25
  logging.getLogger("httpx").setLevel(logging.ERROR)
26
  logging.getLogger("asyncio").setLevel(logging.ERROR)
27
  logging.getLogger("charset_normalizer").setLevel(logging.ERROR)
28
- logging.getLogger("torchaudio._extension").setLevel(logging.ERROR)
29
  logging.getLogger("multipart").setLevel(logging.WARNING)
30
  from download import *
31
  download()
@@ -897,4 +897,4 @@ with gr.Blocks(theme='Kasien/ali_theme_custom') as app:
897
  inputs=[user_voice,user_text,user_lang],
898
  outputs=[user_output])
899
 
900
- app.launch(share=True, show_api=False).queue(api_open=False)
 
25
  logging.getLogger("httpx").setLevel(logging.ERROR)
26
  logging.getLogger("asyncio").setLevel(logging.ERROR)
27
  logging.getLogger("charset_normalizer").setLevel(logging.ERROR)
28
+ logging.getLogger("torchaudio._extension").setLevel(logging.ERROR) 
29
  logging.getLogger("multipart").setLevel(logging.WARNING)
30
  from download import *
31
  download()
 
897
  inputs=[user_voice,user_text,user_lang],
898
  outputs=[user_output])
899
 
900
+ app.launch(share=True, show_api=True).queue(api_open=True)