youngtsai commited on
Commit
3f52584
Β·
1 Parent(s): b0115e9

, max_length=60

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2126,7 +2126,7 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
2126
  btn_3 = gr.Button("ε•ι‘ŒδΈ€")
2127
  gr.Markdown("### ι‡ζ–°η”Ÿζˆε•ι‘Œ")
2128
  btn_create_question = gr.Button("η”Ÿζˆε…Άδ»–ε•ι‘Œ", variant="primary")
2129
- openai_chatbot_audio_input = gr.Audio(sources=["microphone"], type="filepath")
2130
  with gr.Row():
2131
  msg = gr.Textbox(label="訊息",scale=3)
2132
  send_button = gr.Button("送出", variant="primary", scale=1)
@@ -2150,7 +2150,7 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
2150
  ai_chatbot_question_1 = gr.Button("ε•ι‘ŒδΈ€")
2151
  ai_chatbot_question_2 = gr.Button("ε•ι‘ŒδΈ€")
2152
  ai_chatbot_question_3 = gr.Button("ε•ι‘ŒδΈ€")
2153
- ai_chatbot_audio_input = gr.Audio(sources=["microphone"], type="filepath")
2154
  with gr.Row():
2155
  ai_msg = gr.Textbox(label="訊息輸ε…₯",scale=3)
2156
  ai_send_button = gr.Button("送出", variant="primary",scale=1)
 
2126
  btn_3 = gr.Button("ε•ι‘ŒδΈ€")
2127
  gr.Markdown("### ι‡ζ–°η”Ÿζˆε•ι‘Œ")
2128
  btn_create_question = gr.Button("η”Ÿζˆε…Άδ»–ε•ι‘Œ", variant="primary")
2129
+ openai_chatbot_audio_input = gr.Audio(sources=["microphone"], type="filepath", max_length=60)
2130
  with gr.Row():
2131
  msg = gr.Textbox(label="訊息",scale=3)
2132
  send_button = gr.Button("送出", variant="primary", scale=1)
 
2150
  ai_chatbot_question_1 = gr.Button("ε•ι‘ŒδΈ€")
2151
  ai_chatbot_question_2 = gr.Button("ε•ι‘ŒδΈ€")
2152
  ai_chatbot_question_3 = gr.Button("ε•ι‘ŒδΈ€")
2153
+ ai_chatbot_audio_input = gr.Audio(sources=["microphone"], type="filepath", max_length=60)
2154
  with gr.Row():
2155
  ai_msg = gr.Textbox(label="訊息輸ε…₯",scale=3)
2156
  ai_send_button = gr.Button("送出", variant="primary",scale=1)