Hunzla commited on
Commit
b27d31f
1 Parent(s): bb688fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -68,7 +68,7 @@ def send_data_to_db(order_id,col_name):
68
  print(response.status_code)
69
  print(response.text)
70
 
71
- def transcribe_the_command(audio,menu_id,order_id,db_col="0"):
72
  local_ip = get_local_ip()
73
  if local_ip:
74
  print(f"Local IP Address: {local_ip}")
@@ -99,7 +99,7 @@ import gradio as gr
99
 
100
  iface = gr.Interface(
101
  fn=transcribe_the_command,
102
- inputs=[gr.inputs.Audio(label="Recorded Audio",source="microphone"),gr.inputs.Textbox(label="id"),gr.inputs.Textbox(label="col_name(optional)")],
103
  outputs="text",
104
  title="Whisper Small Urdu Command",
105
  description="Realtime demo for Urdu speech recognition using a fine-tuned Whisper small model and outputting the estimated command on the basis of speech transcript.",
 
68
  print(response.status_code)
69
  print(response.text)
70
 
71
+ def transcribe_the_command(audio,menu_id,order_id):
72
  local_ip = get_local_ip()
73
  if local_ip:
74
  print(f"Local IP Address: {local_ip}")
 
99
 
100
  iface = gr.Interface(
101
  fn=transcribe_the_command,
102
+ inputs=[gr.inputs.Audio(label="Recorded Audio",source="microphone"),gr.inputs.Textbox(label="menu_id"),gr.inputs.Textbox(label="order_id")],
103
  outputs="text",
104
  title="Whisper Small Urdu Command",
105
  description="Realtime demo for Urdu speech recognition using a fine-tuned Whisper small model and outputting the estimated command on the basis of speech transcript.",