Akjava commited on
Commit
9e121ac
·
verified ·
1 Parent(s): b0d8113

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -79,5 +79,8 @@ with gr.Blocks(title="LLM with TTS",head=head) as demo:
79
  """)
80
 
81
  msg.submit(call_generate_text, [msg, chatbot], [msg, chatbot])
82
-
83
- demo.launch(allowed_paths=["models"])
 
 
 
 
79
  """)
80
 
81
  msg.submit(call_generate_text, [msg, chatbot], [msg, chatbot])
82
+
83
+ from pathlib import Path
84
+ DATA_PATH = Path("./models")
85
+ print(DATA_PATH)
86
+ demo.launch(allowed_paths=[str(DATA_PATH)])