Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -324,7 +324,6 @@ def app():
|
|
324 |
with gr.TabItem('数字人问答'):
|
325 |
gen_video = gr.Video(label="生成视频", format="mp4", scale=1, autoplay=False)
|
326 |
video_button = gr.Button("提交视频生成", variant='primary')
|
327 |
-
print(question_audio, method, input_text,voice, rate, volume, pitch, batch_size, character)
|
328 |
video_button.click(fn=Talker_response,inputs=[question_audio, method, input_text,voice, rate, volume, pitch, batch_size, character],outputs=[gen_video])
|
329 |
|
330 |
with gr.Row():
|
@@ -590,7 +589,7 @@ if __name__ == "__main__":
|
|
590 |
# llm = LLM(mode='offline').init_model('Linly', 'Linly-AI/Chinese-LLaMA-2-7B-hf')
|
591 |
# llm = LLM(mode='offline').init_model('Gemini', 'gemini-pro', api_key = "your api key")
|
592 |
# llm = LLM(mode='offline').init_model('Qwen', 'Qwen/Qwen-1_8B-Chat')
|
593 |
-
llm = LLM(mode='
|
594 |
try:
|
595 |
talker = SadTalker(lazy_load=True)
|
596 |
except Exception as e:
|
|
|
324 |
with gr.TabItem('数字人问答'):
|
325 |
gen_video = gr.Video(label="生成视频", format="mp4", scale=1, autoplay=False)
|
326 |
video_button = gr.Button("提交视频生成", variant='primary')
|
|
|
327 |
video_button.click(fn=Talker_response,inputs=[question_audio, method, input_text,voice, rate, volume, pitch, batch_size, character],outputs=[gen_video])
|
328 |
|
329 |
with gr.Row():
|
|
|
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:
|