开启api,三Q (#4)
Browse files- 开启api,三Q (a0fda685fe901db6fb318d5a384650f5751c57a1)
Co-authored-by: huazizai <[email protected]>
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=
|
|
|
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)
|