GunaKoppula commited on
Commit
5fa6c38
·
verified ·
1 Parent(s): b1b49d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -109,13 +109,9 @@ with gr.Blocks(theme='upsatwal/mlsc_tiet') as demo:
109
  # Creating a column with a scale of 2
110
  with gr.Row():
111
  # Add audio
112
- # audio_upload = gr.Audio(source="upload", type="filepath")
113
- # audio_mic = gr.Audio(source="microphone", type="filepath", format="mp3")
114
- audio_upload = gr.Audio(type="filepath")
115
  audio_mic = gr.Microphone(source="microphone", type="filepath", format="mp3")
116
 
117
-
118
- # with gr.Column():
119
  # Adding a Button
120
  with gr.Row():
121
  submit = gr.Button()
@@ -125,20 +121,16 @@ with gr.Blocks(theme='upsatwal/mlsc_tiet') as demo:
125
  submit.click(
126
  add_content,
127
  inputs=[chatbot, prompt, image, audio_upload, audio_mic],
128
- # inputs=[chatbot, prompt, image, audio_upload],
129
  outputs=[chatbot],
130
  ).success(
131
  run,
132
  inputs=[chatbot, prompt, image, audio_upload, audio_mic],
133
- # inputs=[chatbot, prompt, image, audio_upload],
134
  outputs=[chatbot, prompt, image, audio_upload, audio_mic],
135
- # outputs=[chatbot, prompt, image, audio_upload],
136
  )
137
 
138
  clear.click(
139
  clear_data,
140
  outputs=[prompt, image, audio_upload, audio_mic, chatbot],
141
- # outputs=[prompt, image, audio_upload, chatbot],
142
  )
143
 
144
  demo.launch()
 
109
  # Creating a column with a scale of 2
110
  with gr.Row():
111
  # Add audio
112
+ audio_upload = gr.Audio(source="upload", type="filepath")
 
 
113
  audio_mic = gr.Microphone(source="microphone", type="filepath", format="mp3")
114
 
 
 
115
  # Adding a Button
116
  with gr.Row():
117
  submit = gr.Button()
 
121
  submit.click(
122
  add_content,
123
  inputs=[chatbot, prompt, image, audio_upload, audio_mic],
 
124
  outputs=[chatbot],
125
  ).success(
126
  run,
127
  inputs=[chatbot, prompt, image, audio_upload, audio_mic],
 
128
  outputs=[chatbot, prompt, image, audio_upload, audio_mic],
 
129
  )
130
 
131
  clear.click(
132
  clear_data,
133
  outputs=[prompt, image, audio_upload, audio_mic, chatbot],
 
134
  )
135
 
136
  demo.launch()