helvekami commited on
Commit
57740a6
·
verified ·
1 Parent(s): 66c2b05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -22,7 +22,7 @@ def transcribe_and_respond(audio_file):
22
  print(f"Audio dtype: {audio.dtype}, Audio shape: {audio.shape}, Sample rate: {sr}")
23
 
24
  turns = [
25
- {'role': 'system', 'content': 'Share the Key Take Aways and Action Steps'},
26
  {'role': 'user', 'content': '<|audio|>'}
27
  ]
28
 
@@ -42,15 +42,17 @@ def transcribe_and_respond(audio_file):
42
 
43
  iface = gr.Interface(
44
  fn=transcribe_and_respond,
45
- # Allow both file upload and microphone input by providing a list of sources.
46
- inputs=gr.Audio(sources=["upload", "microphone"], type="filepath"),
 
47
  outputs=[
48
- gr.Textbox(label="Transcript"),
49
- gr.File(label="Download Transcript")],
 
50
  title="ShukaNotesApp",
51
- description="Meeting Notes for Indian Offices Discussions. \n Enter your audio from meetings here and the model will share the key takeaways.",
52
  live=True
53
  )
54
 
55
  if __name__ == "__main__":
56
- iface.launch()
 
22
  print(f"Audio dtype: {audio.dtype}, Audio shape: {audio.shape}, Sample rate: {sr}")
23
 
24
  turns = [
25
+ {'role': 'system', 'content': 'Compile the information'},
26
  {'role': 'user', 'content': '<|audio|>'}
27
  ]
28
 
 
42
 
43
  iface = gr.Interface(
44
  fn=transcribe_and_respond,
45
+ inputs=[
46
+ gr.Audio(sources=["upload", "microphone"], type="filepath"),
47
+ ],
48
  outputs=[
49
+ gr.Textbox(label="Transcript"),
50
+ gr.File(label="Download Transcript")
51
+ ],
52
  title="ShukaNotesApp",
53
+ description="Note Maker for Indian Offices and Their Dozen Languages.",
54
  live=True
55
  )
56
 
57
  if __name__ == "__main__":
58
+ iface.launch()