Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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="
|
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.",
|