Arnab Das commited on
Commit
722f84e
·
1 Parent(s): 84c86c6

Initial commit for testing.

Browse files
Files changed (4) hide show
  1. .gitignore +1 -0
  2. app.py +28 -0
  3. packages.txt +0 -0
  4. requirements.txt +0 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ .idea
app.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def process(file, type):
4
+ return str(file)+str(type)
5
+
6
+ demo = gr.Blocks()
7
+
8
+ file_proc = gr.Interface(
9
+ fn=process,
10
+ inputs=[
11
+ gr.inputs.Audio(source="upload", optional=True, label="Audio file", type="filepath"),
12
+ gr.inputs.Radio(["SSL-AASIST (Trained on ASV-Spoof5)", "AASIST"], label="Select Model", default="SSL-AASIST (Trained on ASV-Spoof5)"),
13
+ ],
14
+ outputs="text",
15
+ layout="horizontal",
16
+ theme="huggingface",
17
+ title="Whisper Demo: Transcribe Audio",
18
+ description=(
19
+ "Analyze fake or real with a click of a button."
20
+ ),
21
+ cache_examples=True,
22
+ allow_flagging="never",
23
+ )
24
+
25
+ with demo:
26
+ gr.TabbedInterface([file_proc], ["Analyze Audio File"])
27
+
28
+ demo.launch(enable_queue=True)
packages.txt ADDED
File without changes
requirements.txt ADDED
File without changes