Spaces:
Running
Running
Create app.py
Browse files
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()
|