pushpinder06 commited on
Commit
eb3a284
·
verified ·
1 Parent(s): 6742f82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -37,13 +37,13 @@ with gr.Blocks() as demo:
37
 
38
  with gr.TabItem("🗣️ ਆਵਾਜ਼ ਰਾਹੀਂ ਪੁੱਛੋ"):
39
  gr.Markdown("### ਆਪਣਾ ਸਵਾਲ ਆਵਾਜ਼ ਰਾਹੀਂ ਪੁੱਛੋ (ਪੰਜਾਬੀ ਵਿੱਚ)")
40
- audio_input = gr.Audio(type="filepath", label="🎤 ਸਵਾਲ ਬੋਲੋ")
41
- query_text = gr.Textbox(label="🔍 ਬੋਲਿਆ ਗਿਆ ਸਵਾਲ")
42
- gemini_response = gr.Textbox(label="📜 Gemini ਜਵਾਬ")
43
- audio_output = gr.Audio(label="🔊 ਆਵਾਜ਼ੀ ਜਵਾਬ")
44
- submit_btn = gr.Button("➡️ ਜਵਾਬ ਲਵੋ")
45
- submit_btn.click(fn=handle_voice_query,
46
- inputs=[audio_input],
47
- outputs=[query_text, gemini_response, audio_output])
48
 
49
  demo.launch()
 
37
 
38
  with gr.TabItem("🗣️ ਆਵਾਜ਼ ਰਾਹੀਂ ਪੁੱਛੋ"):
39
  gr.Markdown("### ਆਪਣਾ ਸਵਾਲ ਆਵਾਜ਼ ਰਾਹੀਂ ਪੁੱਛੋ (ਪੰਜਾਬੀ ਵਿੱਚ)")
40
+ audio_input = gr.Audio(type="filepath", label="🎤 ਸਵਾਲ ਬੋਲੋ")
41
+ query_text = gr.Textbox(label="🔍 ਬੋਲਿਆ ਗਿਆ ਸਵਾਲ")
42
+ gemini_response = gr.Textbox(label="📜 Gemini ਜਵਾਬ")
43
+ audio_output = gr.Audio(label="🔊 ਆਵਾਜ਼ੀ ਜਵਾਬ")
44
+ submit_btn = gr.Button("➡️ ਜਵਾਬ ਲਵੋ")
45
+ submit_btn.click(fn=handle_voice_query,
46
+ inputs=[audio_input],
47
+ outputs=[query_text, gemini_response, audio_output])
48
 
49
  demo.launch()