iamAI123 commited on
Commit
54f8344
·
1 Parent(s): 75445e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -77,7 +77,7 @@ def process_segment(segment_path: str, q) -> str:
77
  print(result['text'])
78
  return result["text"]
79
 
80
- if __name__ == '__main__':
81
 
82
  path = '/The genius of Satya Nadella Sam Altman and Lex Fridman.mp3'
83
 
@@ -87,4 +87,9 @@ if __name__ == '__main__':
87
  p.start()
88
  print(q.get())
89
  p.join()
 
 
 
 
 
90
 
 
77
  print(result['text'])
78
  return result["text"]
79
 
80
+ def results(path):
81
 
82
  path = '/The genius of Satya Nadella Sam Altman and Lex Fridman.mp3'
83
 
 
87
  p.start()
88
  print(q.get())
89
  p.join()
90
+ return "complete"
91
+
92
+ ad = gr.components.Audio(type='filepath')
93
+ iface = gr.Interface(fn=get_results, inputs=ad, outputs="text")
94
+ iface.launch()
95