karimouda commited on
Commit
de8ee7d
·
verified ·
1 Parent(s): 2c1e472

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -5,6 +5,9 @@ import tempfile
5
  from importlib.resources import files
6
  from silma_tts.api import SilmaTTS
7
 
 
 
 
8
  print("Loading SILMA TTS model...", flush=True)
9
  silma_tts = SilmaTTS()
10
 
@@ -86,7 +89,7 @@ I am the new SILMA model for converting text to speech, I can speak Arabic with
86
  def main():
87
  print("Starting app...")
88
 
89
- demo.queue().launch(ssr_mode=False)
90
 
91
  if __name__ == "__main__":
92
  main()
 
5
  from importlib.resources import files
6
  from silma_tts.api import SilmaTTS
7
 
8
+
9
+ CURR_BASE_DIR = os.getcwd()
10
+
11
  print("Loading SILMA TTS model...", flush=True)
12
  silma_tts = SilmaTTS()
13
 
 
89
  def main():
90
  print("Starting app...")
91
 
92
+ demo.queue().launch(ssr_mode=False, allowed_paths=[CURR_BASE_DIR+"/images/"])
93
 
94
  if __name__ == "__main__":
95
  main()