Update app.py
Browse files6 unmodified lines7891011121391 unmodified lines10510610710810911011111211311420 unmodified lines13513613713813914014110 unmodified lines1521531541551561571581591601611621631641651661671681691701711721731741751761776 unmodified linesimport timeAPI_URL = os.environ.get("API_URL")supported_languages = ['zh', 'en']output_dir = 'outputs'91 unmodified linesstart = time.time()# Send the data as a POST requestresponse = requests.post(API_URL, json=data, timeout=60)print(f'Get response successfully within {time.time() - start}')# Check the responseif response.status_code == 200:try:20 unmodified linesNone,None,)text_hint += f'''Get response successfully \n'''return (text_hint,10 unmodified linesmarkdown_table = """<div align="center" style="margin-bottom: 10px;">| | | || :-----------: | :-----------: | :-----------: || **OpenSource Repo** | **Project Page** | **Join the Community** || <div style='text-align: center;'><a style="display:inline-block,align:center" href='https://github.com/myshell-ai/OpenVoice'><img src='https://img.shields.io/github/stars/myshell-ai/OpenVoice?style=social' /></a></div> | [OpenVoice](https://research.myshell.ai/open-voice) | [](https://discord.gg/myshell) |</div>"""markdown_table_v2 = """<div align="center" style="margin-bottom: 2px;">| | | | || :-----------: | :-----------: | :-----------: | :-----------: || **Github Repo** | <div style='text-align: center;'><a style="display:inline-block,align:center" href='https://github.com/myshell-ai/OpenVoice'><img src='https://img.shields.io/github/stars/myshell-ai/OpenVoice?style=social' /></a></div> | **Project Page** | [OpenVoice](https://research.myshell.ai/open-voice) || | || :-----------: | :-----------: |**Join the Community** | [](https://discord.gg/myshell) |</div>"""content = """6 unmodified lines78910111291 unmodified lines10410510610710810911011120 unmodified lines13213313413513613710 unmodified lines1481491501511521531541551561571581591601611621631641651661671686 unmodified linesimport timeAPI_URL = os.environ.get("API_URL")supported_languages = ['zh', 'en']output_dir = 'outputs'91 unmodified linesstart = time.time()# Send the data as a POST requestresponse = requests.post(API_URL, json=data, timeout=60)print(f'Get response successfully within {time.time() - start}')# Check the responseif response.status_code == 200:try:20 unmodified linesNone,None,)text_hint += f'''Get response successfully \n'''return (text_hint,10 unmodified linesmarkdown_table = """<div align="center" style="margin-bottom: 10px;">| | | || :-----------: | :-----------: | :-----------: || **OpenSource Repo** | **Project Page** | **Join the Community** || <div style='text-align: center;'><a style="display:inline-block,align:center" href='https://github.com/myshell-ai/OpenVoice'><img src='https://img.shields.io/github/stars/myshell-ai/OpenVoice?style=social' /></a></div> | [OpenVoice](https://research.myshell.ai/open-voice) | [](https://discord.gg/myshell) |</div>"""markdown_table_v2 = """<div align="center" style="margin-bottom: 2px;">| | | | || :-----------: | :-----------: | :-----------: | :-----------: || **Github Repo** | <div style='text-align: center;'><a style="display:inline-block,align:center" href='https://github.com/myshell-ai/OpenVoice'><img src='https://img.shields.io/github/stars/myshell-ai/OpenVoice?style=social' /></a></div> | **Project Page** | [OpenVoice](https://research.myshell.ai/open-voice) || | || :-----------: | :-----------: |**Join the Community** | [](https://discord.gg/myshell) |</div>"""content = """
app.py-9