Spaces:
Sleeping
Sleeping
Update app.py
Browse files36 unmodified lines3738394041424344454647484936 unmodified lineswith gr.TabItem("🗣️ ਆਵਾਜ਼ ਰਾਹੀਂ ਪੁੱਛੋ"):gr.Markdown("### ਆਪਣਾ ਸਵਾਲ ਆਵਾਜ਼ ਰਾਹੀਂ ਪੁੱਛੋ (ਪੰਜਾਬੀ ਵਿੱਚ)")audio_input = gr.Audio(type="filepath", label="🎤 ਸਵਾਲ ਬੋਲੋ")query_text = gr.Textbox(label="🔍 ਬੋਲਿਆ ਗਿਆ ਸਵਾਲ")gemini_response = gr.Textbox(label="📜 Gemini ਜਵਾਬ")audio_output = gr.Audio(label="🔊 ਆਵਾਜ਼ੀ ਜਵਾਬ")submit_btn = gr.Button("➡️ ਜਵਾਬ ਲਵੋ")submit_btn.click(fn=handle_voice_query,inputs=[audio_input],outputs=[query_text, gemini_response, audio_output])demo.launch()36 unmodified lines3738394041424344454647484936 unmodified lineswith gr.TabItem("🗣️ ਆਵਾਜ਼ ਰਾਹੀਂ ਪੁੱਛੋ"):gr.Markdown("### ਆਪਣਾ ਸਵਾਲ ਆਵਾਜ਼ ਰਾਹੀਂ ਪੁੱਛੋ (ਪੰਜਾਬੀ ਵਿੱਚ)")audio_input = gr.Audio(type="filepath", label="🎤 ਸਵਾਲ ਬੋਲੋ")query_text = gr.Textbox(label="🔍 ਬੋਲਿਆ ਗਿਆ ਸਵਾਲ")gemini_response = gr.Textbox(label="📜 Gemini ਜਵਾਬ")audio_output = gr.Audio(label="🔊 ਆਵਾਜ਼ੀ ਜਵਾਬ")submit_btn = gr.Button("➡️ ਜਵਾਬ ਲਵੋ")submit_btn.click(fn=handle_voice_query,inputs=[audio_input],outputs=[query_text, gemini_response, audio_output])demo.launch()
app.py+8-8