Spaces:
Sleeping
Sleeping
thepianist9
commited on
Commit
•
3b14608
1
Parent(s):
2818752
Update app.py
Browse files
app.py
CHANGED
@@ -589,7 +589,7 @@ if __name__ == "__main__":
|
|
589 |
# llm = LLM(mode='offline').init_model('Linly', 'Linly-AI/Chinese-LLaMA-2-7B-hf')
|
590 |
# llm = LLM(mode='offline').init_model('Gemini', 'gemini-pro', api_key = "your api key")
|
591 |
# llm = LLM(mode='offline').init_model('Qwen', 'Qwen/Qwen-1_8B-Chat')
|
592 |
-
llm = LLM(mode='
|
593 |
try:
|
594 |
talker = SadTalker(lazy_load=True)
|
595 |
except Exception as e:
|
@@ -617,11 +617,12 @@ if __name__ == "__main__":
|
|
617 |
asr = WhisperASR('base')
|
618 |
tts = EdgeTTS()
|
619 |
gr.close_all()
|
|
|
620 |
demo_img = app_img()
|
621 |
demo_multi = app_multi()
|
622 |
demo_vits = app_vits()
|
623 |
-
demo = gr.TabbedInterface(interface_list = [demo_img, demo_multi, demo_vits],
|
624 |
-
tab_names = ["image", "multi", "app_vits"],
|
625 |
title = "Linly-Talker WebUI")
|
626 |
demo.launch(server_name="127.0.0.1", # 本地端口localhost:127.0.0.1 全局端口转发:"0.0.0.0"
|
627 |
server_port=port,
|
|
|
589 |
# llm = LLM(mode='offline').init_model('Linly', 'Linly-AI/Chinese-LLaMA-2-7B-hf')
|
590 |
# llm = LLM(mode='offline').init_model('Gemini', 'gemini-pro', api_key = "your api key")
|
591 |
# llm = LLM(mode='offline').init_model('Qwen', 'Qwen/Qwen-1_8B-Chat')
|
592 |
+
llm = LLM(mode='api').init_model('Qwen', 'Qwen/Qwen-1_8B-Chat')
|
593 |
try:
|
594 |
talker = SadTalker(lazy_load=True)
|
595 |
except Exception as e:
|
|
|
617 |
asr = WhisperASR('base')
|
618 |
tts = EdgeTTS()
|
619 |
gr.close_all()
|
620 |
+
demo_app = demo_app()
|
621 |
demo_img = app_img()
|
622 |
demo_multi = app_multi()
|
623 |
demo_vits = app_vits()
|
624 |
+
demo = gr.TabbedInterface(interface_list = [demo_app, demo_img, demo_multi, demo_vits],
|
625 |
+
tab_names = ["app", "image", "multi", "app_vits"],
|
626 |
title = "Linly-Talker WebUI")
|
627 |
demo.launch(server_name="127.0.0.1", # 本地端口localhost:127.0.0.1 全局端口转发:"0.0.0.0"
|
628 |
server_port=port,
|