fffiloni commited on
Commit
e39ea8d
Β·
1 Parent(s): 23e8758

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -123,8 +123,13 @@ with gr.Blocks(css="style.css") as demo:
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,10 +142,8 @@ with gr.Blocks(css="style.css") as demo:
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
 
146
  send_btn = gr.Button("Send my request !")
 
123
  with gr.Column(elem_id="col-container"):
124
 
125
  gr.HTML(title)
126
+
127
+ with gr.Row():
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
  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 !")