anthienlong commited on
Commit
64129cf
·
verified ·
1 Parent(s): de8579a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -31,8 +31,6 @@ def tts_interface(text, voice, rate, pitch):
31
  return audio, warning
32
 
33
  # Create Gradio application
34
- import gradio as gr
35
-
36
  async def create_demo():
37
  voices = await get_voices()
38
 
@@ -57,11 +55,11 @@ async def create_demo():
57
  description=description,
58
  article="Đại khái là công cụ này dùng chức năng text to speech có trong trình duyệt MS Edge",
59
  analytics_enabled=False,
60
- allow_flagging=False
61
  )
62
  return demo
63
 
64
  # Run the application
65
  if __name__ == "__main__":
66
  demo = asyncio.run(create_demo())
67
- demo.launch()
 
31
  return audio, warning
32
 
33
  # Create Gradio application
 
 
34
  async def create_demo():
35
  voices = await get_voices()
36
 
 
55
  description=description,
56
  article="Đại khái là công cụ này dùng chức năng text to speech có trong trình duyệt MS Edge",
57
  analytics_enabled=False,
58
+ flagging_mode="never" # Thay thế allow_flagging=False
59
  )
60
  return demo
61
 
62
  # Run the application
63
  if __name__ == "__main__":
64
  demo = asyncio.run(create_demo())
65
+ demo.launch()