Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def infer(audio, openai_api_key):
|
|
29 |
|
30 |
portrait_link = talking_face("wise_woman_portrait.png", audio_response, fn_index=0)
|
31 |
|
32 |
-
return whisper_result, portrait_link, gpt_response[1], gr.update(visible=True)
|
33 |
|
34 |
def try_api(message, openai_api_key):
|
35 |
try:
|
@@ -110,7 +110,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
110 |
gr.HTML(title)
|
111 |
|
112 |
gpt_response = gr.Video(label="Talking Portrait response", elem_id="video_out")
|
113 |
-
error_handler = gr.
|
114 |
|
115 |
with gr.Column(elem_id="col-container-2"):
|
116 |
with gr.Row():
|
|
|
29 |
|
30 |
portrait_link = talking_face("wise_woman_portrait.png", audio_response, fn_index=0)
|
31 |
|
32 |
+
return whisper_result, portrait_link, gr.Textbox.update(value=gpt_response[1], visible=True), gr.update(visible=True)
|
33 |
|
34 |
def try_api(message, openai_api_key):
|
35 |
try:
|
|
|
110 |
gr.HTML(title)
|
111 |
|
112 |
gpt_response = gr.Video(label="Talking Portrait response", elem_id="video_out")
|
113 |
+
error_handler = gr.Textbox(visible=False, show_label=False)
|
114 |
|
115 |
with gr.Column(elem_id="col-container-2"):
|
116 |
with gr.Row():
|