Spaces:
Running
Running
Arnab Das
commited on
Commit
·
722f84e
1
Parent(s):
84c86c6
Initial commit for testing.
Browse files- .gitignore +1 -0
- app.py +28 -0
- packages.txt +0 -0
- 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
|