yadongxie commited on
Commit
2279da8
1 Parent(s): 518275a

fix: better layout

Browse files
Files changed (2) hide show
  1. __pycache__/app.cpython-310.pyc +0 -0
  2. app.py +10 -4
__pycache__/app.cpython-310.pyc CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
 
app.py CHANGED
@@ -180,18 +180,24 @@ with gr.Blocks() as demo:
180
  with gr.Row():
181
  with gr.Column(scale=3):
182
  api_key_input = gr.Textbox(
183
- type="password", label="Enter your Lepton API Key"
 
 
 
184
  )
185
  with gr.Column(scale=1):
186
- set_key_button = gr.Button("Set API Key", scale=2, variant="secondary")
187
 
188
  api_key_status = gr.Textbox(
189
  show_label=False, container=False, interactive=False, visible=False
190
  )
191
 
192
  with gr.Blocks():
193
- input_audio = gr.Audio(label="Input Audio", sources="microphone", type="numpy")
194
- output_audio = gr.Audio(label="Output Audio", autoplay=True)
 
 
 
195
  chatbot = gr.Chatbot(label="Conversation", type="messages")
196
  cancel = gr.Button("Stop Conversation", variant="stop")
197
 
 
180
  with gr.Row():
181
  with gr.Column(scale=3):
182
  api_key_input = gr.Textbox(
183
+ type="password",
184
+ placeholder="Enter your Lepton API Key",
185
+ show_label=False,
186
+ container=False,
187
  )
188
  with gr.Column(scale=1):
189
+ set_key_button = gr.Button("Set API Key", scale=2, variant="primary")
190
 
191
  api_key_status = gr.Textbox(
192
  show_label=False, container=False, interactive=False, visible=False
193
  )
194
 
195
  with gr.Blocks():
196
+ with gr.Row():
197
+ input_audio = gr.Audio(
198
+ label="Input Audio", sources="microphone", type="numpy"
199
+ )
200
+ output_audio = gr.Audio(label="Output Audio", autoplay=True)
201
  chatbot = gr.Chatbot(label="Conversation", type="messages")
202
  cancel = gr.Button("Stop Conversation", variant="stop")
203