archit11 commited on
Commit
70351e3
·
verified ·
1 Parent(s): 4269171

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -36,7 +36,6 @@ def transcribe_and_respond(audio: np.ndarray) -> str:
36
  inputs = {
37
  'audio': audio,
38
  'turns': turns,
39
- 'sampling_rate': SAMPLE_RATE
40
  }
41
 
42
  # Generate response
@@ -49,7 +48,7 @@ def transcribe_and_respond(audio: np.ndarray) -> str:
49
  # Create the Gradio interface
50
  iface = gr.Interface(
51
  fn=transcribe_and_respond,
52
- inputs=gr.Audio(sources="microphone", type="numpy", sampling_rate=SAMPLE_RATE),
53
  outputs="text",
54
  title="Live Voice Input for Transcription and Response",
55
  description="Speak into your microphone, and the model will respond naturally and informatively.",
 
36
  inputs = {
37
  'audio': audio,
38
  'turns': turns,
 
39
  }
40
 
41
  # Generate response
 
48
  # Create the Gradio interface
49
  iface = gr.Interface(
50
  fn=transcribe_and_respond,
51
+ inputs=gr.Audio(sources="microphone", type="numpy"),
52
  outputs="text",
53
  title="Live Voice Input for Transcription and Response",
54
  description="Speak into your microphone, and the model will respond naturally and informatively.",