Update app.py
Browse files
app.py
CHANGED
@@ -105,17 +105,20 @@ with gr.Blocks(css="style.css") as demo:
|
|
105 |
gr.HTML(title)
|
106 |
|
107 |
gpt_response = gr.Video(label="Talking Portrait response", elem_id="video_out")
|
|
|
|
|
108 |
with gr.Group(elem_id="share-btn-container", visible=False) as share_group:
|
109 |
community_icon = gr.HTML(community_icon_html)
|
110 |
loading_icon = gr.HTML(loading_icon_html)
|
111 |
share_button = gr.Button("Share to community", elem_id="share-btn")
|
|
|
112 |
error_handler = gr.Textbox(visible=False, show_label=False)
|
113 |
|
114 |
with gr.Column(elem_id="col-container-2"):
|
115 |
with gr.Row():
|
116 |
record_input = gr.Audio(source="microphone",type="filepath", label="Audio input", show_label=True, elem_id="record_btn")
|
117 |
openai_api_key = gr.Textbox(max_lines=1, type="password", label="Your OpenAI API Key", placeholder="sk-123abc...")
|
118 |
-
|
119 |
|
120 |
send_btn = gr.Button("Send my request !")
|
121 |
|
|
|
105 |
gr.HTML(title)
|
106 |
|
107 |
gpt_response = gr.Video(label="Talking Portrait response", elem_id="video_out")
|
108 |
+
whisper_tr = gr.Textbox(label="whisper english translation", elem_id="text_inp", visible=False)
|
109 |
+
|
110 |
with gr.Group(elem_id="share-btn-container", visible=False) as share_group:
|
111 |
community_icon = gr.HTML(community_icon_html)
|
112 |
loading_icon = gr.HTML(loading_icon_html)
|
113 |
share_button = gr.Button("Share to community", elem_id="share-btn")
|
114 |
+
|
115 |
error_handler = gr.Textbox(visible=False, show_label=False)
|
116 |
|
117 |
with gr.Column(elem_id="col-container-2"):
|
118 |
with gr.Row():
|
119 |
record_input = gr.Audio(source="microphone",type="filepath", label="Audio input", show_label=True, elem_id="record_btn")
|
120 |
openai_api_key = gr.Textbox(max_lines=1, type="password", label="Your OpenAI API Key", placeholder="sk-123abc...")
|
121 |
+
|
122 |
|
123 |
send_btn = gr.Button("Send my request !")
|
124 |
|