imansarraf commited on
Commit
3f298f4
·
verified ·
1 Parent(s): 1d4a66a

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from iman.sad_tf import *
3
+
4
+ def transcribe_audio(audio_file):
5
+ return "ok"
6
+
7
+ # Define the Gradio interface
8
+ interface = gr.Interface(
9
+ fn=transcribe_audio,
10
+ inputs=gr.Audio(source="microphone", type="filepath"),
11
+ outputs="text",
12
+ title="Audio Transcription",
13
+ description="Upload an audio file or record audio to get the transcription."
14
+ )
15
+
16
+ # Launch the Gradio app
17
+ interface.launch()