Update app.py
Browse files
app.py
CHANGED
@@ -123,13 +123,8 @@ with gr.Blocks(css="style.css") as demo:
|
|
123 |
with gr.Column(elem_id="col-container"):
|
124 |
|
125 |
gr.HTML(title)
|
126 |
-
|
127 |
-
|
128 |
-
with gr.Column():
|
129 |
-
record_input = gr.Audio(source="microphone",type="filepath", label="Audio input", show_label=True, elem_id="record_btn")
|
130 |
-
openai_api_key = gr.Textbox(max_lines=1, type="password", label="π Your OpenAI API Key", placeholder="sk-123abc...")
|
131 |
-
|
132 |
-
gpt_response = gr.Video(label="Talking Portrait response", elem_id="video_out")
|
133 |
whisper_tr = gr.Textbox(label="whisper english translation", elem_id="text_inp", visible=False)
|
134 |
|
135 |
with gr.Row(elem_id="secondary-buttons"):
|
@@ -142,10 +137,11 @@ with gr.Blocks(css="style.css") as demo:
|
|
142 |
error_handler = gr.HTML(visible=False, show_label=False, elem_id="error_handler")
|
143 |
|
144 |
with gr.Column(elem_id="col-container-2"):
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
|
|
149 |
send_btn = gr.Button("Send my request !")
|
150 |
|
151 |
gr.HTML(article)
|
|
|
123 |
with gr.Column(elem_id="col-container"):
|
124 |
|
125 |
gr.HTML(title)
|
126 |
+
|
127 |
+
gpt_response = gr.Video(label="Talking Portrait response", elem_id="video_out")
|
|
|
|
|
|
|
|
|
|
|
128 |
whisper_tr = gr.Textbox(label="whisper english translation", elem_id="text_inp", visible=False)
|
129 |
|
130 |
with gr.Row(elem_id="secondary-buttons"):
|
|
|
137 |
error_handler = gr.HTML(visible=False, show_label=False, elem_id="error_handler")
|
138 |
|
139 |
with gr.Column(elem_id="col-container-2"):
|
140 |
+
with gr.Column():
|
141 |
+
with gr.Row():
|
142 |
+
record_input = gr.Audio(source="microphone",type="filepath", label="Audio input", show_label=True, elem_id="record_btn")
|
143 |
+
openai_api_key = gr.Textbox(max_lines=1, type="password", label="π Your OpenAI API Key", placeholder="sk-123abc...")
|
144 |
+
|
145 |
send_btn = gr.Button("Send my request !")
|
146 |
|
147 |
gr.HTML(article)
|