Spaces:
Sleeping
Sleeping
Arnab Das
commited on
Commit
·
f95686e
1
Parent(s):
562bb0f
Initial commit
Browse files- .idea/.gitignore +8 -0
- .idea/Magnifying_Lens.iml +8 -0
- .idea/deployment.xml +70 -0
- .idea/inspectionProfiles/Project_Default.xml +16 -0
- .idea/inspectionProfiles/profiles_settings.xml +6 -0
- .idea/misc.xml +4 -0
- .idea/modules.xml +8 -0
- .idea/vcs.xml +6 -0
- app,py +24 -0
- gitignore +1 -0
- requirements.txt +2 -0
.idea/.gitignore
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Default ignored files
|
| 2 |
+
/shelf/
|
| 3 |
+
/workspace.xml
|
| 4 |
+
# Editor-based HTTP Client requests
|
| 5 |
+
/httpRequests/
|
| 6 |
+
# Datasource local storage ignored files
|
| 7 |
+
/dataSources/
|
| 8 |
+
/dataSources.local.xml
|
.idea/Magnifying_Lens.iml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<module type="PYTHON_MODULE" version="4">
|
| 3 |
+
<component name="NewModuleRootManager">
|
| 4 |
+
<content url="file://$MODULE_DIR$" />
|
| 5 |
+
<orderEntry type="inheritedJdk" />
|
| 6 |
+
<orderEntry type="sourceFolder" forTests="false" />
|
| 7 |
+
</component>
|
| 8 |
+
</module>
|
.idea/deployment.xml
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="PublishConfigData" remoteFilesAllowedToDisappearOnAutoupload="false">
|
| 4 |
+
<serverData>
|
| 5 |
+
<paths name="[email protected]:22 password">
|
| 6 |
+
<serverdata>
|
| 7 |
+
<mappings>
|
| 8 |
+
<mapping local="$PROJECT_DIR$" web="/" />
|
| 9 |
+
</mappings>
|
| 10 |
+
</serverdata>
|
| 11 |
+
</paths>
|
| 12 |
+
<paths name="[email protected]:22 password (2)">
|
| 13 |
+
<serverdata>
|
| 14 |
+
<mappings>
|
| 15 |
+
<mapping local="$PROJECT_DIR$" web="/" />
|
| 16 |
+
</mappings>
|
| 17 |
+
</serverdata>
|
| 18 |
+
</paths>
|
| 19 |
+
<paths name="[email protected]:22 password (3)">
|
| 20 |
+
<serverdata>
|
| 21 |
+
<mappings>
|
| 22 |
+
<mapping local="$PROJECT_DIR$" web="/" />
|
| 23 |
+
</mappings>
|
| 24 |
+
</serverdata>
|
| 25 |
+
</paths>
|
| 26 |
+
<paths name="[email protected]:22 password (4)">
|
| 27 |
+
<serverdata>
|
| 28 |
+
<mappings>
|
| 29 |
+
<mapping local="$PROJECT_DIR$" web="/" />
|
| 30 |
+
</mappings>
|
| 31 |
+
</serverdata>
|
| 32 |
+
</paths>
|
| 33 |
+
<paths name="[email protected]:22 password (5)">
|
| 34 |
+
<serverdata>
|
| 35 |
+
<mappings>
|
| 36 |
+
<mapping local="$PROJECT_DIR$" web="/" />
|
| 37 |
+
</mappings>
|
| 38 |
+
</serverdata>
|
| 39 |
+
</paths>
|
| 40 |
+
<paths name="[email protected]:22 password (6)">
|
| 41 |
+
<serverdata>
|
| 42 |
+
<mappings>
|
| 43 |
+
<mapping local="$PROJECT_DIR$" web="/" />
|
| 44 |
+
</mappings>
|
| 45 |
+
</serverdata>
|
| 46 |
+
</paths>
|
| 47 |
+
<paths name="[email protected]:22 password (7)">
|
| 48 |
+
<serverdata>
|
| 49 |
+
<mappings>
|
| 50 |
+
<mapping local="$PROJECT_DIR$" web="/" />
|
| 51 |
+
</mappings>
|
| 52 |
+
</serverdata>
|
| 53 |
+
</paths>
|
| 54 |
+
<paths name="[email protected]:22 password">
|
| 55 |
+
<serverdata>
|
| 56 |
+
<mappings>
|
| 57 |
+
<mapping local="$PROJECT_DIR$" web="/" />
|
| 58 |
+
</mappings>
|
| 59 |
+
</serverdata>
|
| 60 |
+
</paths>
|
| 61 |
+
<paths name="ardas@localhost:6000 password">
|
| 62 |
+
<serverdata>
|
| 63 |
+
<mappings>
|
| 64 |
+
<mapping local="$PROJECT_DIR$" web="/" />
|
| 65 |
+
</mappings>
|
| 66 |
+
</serverdata>
|
| 67 |
+
</paths>
|
| 68 |
+
</serverData>
|
| 69 |
+
</component>
|
| 70 |
+
</project>
|
.idea/inspectionProfiles/Project_Default.xml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<component name="InspectionProjectProfileManager">
|
| 2 |
+
<profile version="1.0">
|
| 3 |
+
<option name="myName" value="Project Default" />
|
| 4 |
+
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
| 5 |
+
<option name="ignoredPackages">
|
| 6 |
+
<value>
|
| 7 |
+
<list size="3">
|
| 8 |
+
<item index="0" class="java.lang.String" itemvalue="deepspeed" />
|
| 9 |
+
<item index="1" class="java.lang.String" itemvalue="soundfile" />
|
| 10 |
+
<item index="2" class="java.lang.String" itemvalue="numpy" />
|
| 11 |
+
</list>
|
| 12 |
+
</value>
|
| 13 |
+
</option>
|
| 14 |
+
</inspection_tool>
|
| 15 |
+
</profile>
|
| 16 |
+
</component>
|
.idea/inspectionProfiles/profiles_settings.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<component name="InspectionProjectProfileManager">
|
| 2 |
+
<settings>
|
| 3 |
+
<option name="USE_PROJECT_PROFILE" value="false" />
|
| 4 |
+
<version value="1.0" />
|
| 5 |
+
</settings>
|
| 6 |
+
</component>
|
.idea/misc.xml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7" project-jdk-type="Python SDK" />
|
| 4 |
+
</project>
|
.idea/modules.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="ProjectModuleManager">
|
| 4 |
+
<modules>
|
| 5 |
+
<module fileurl="file://$PROJECT_DIR$/.idea/Magnifying_Lens.iml" filepath="$PROJECT_DIR$/.idea/Magnifying_Lens.iml" />
|
| 6 |
+
</modules>
|
| 7 |
+
</component>
|
| 8 |
+
</project>
|
.idea/vcs.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="VcsDirectoryMappings">
|
| 4 |
+
<mapping directory="" vcs="Git" />
|
| 5 |
+
</component>
|
| 6 |
+
</project>
|
app,py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def process(filepath):
|
| 4 |
+
return filepath
|
| 5 |
+
|
| 6 |
+
demo = gr.Blocks()
|
| 7 |
+
file_proc = gr.Interface(
|
| 8 |
+
fn=process,
|
| 9 |
+
inputs=[
|
| 10 |
+
gr.Audio(sources=["microphone", "upload"], type="filepath", show_download_button=True, label="Speech file (<30s)", max_length=30),
|
| 11 |
+
],
|
| 12 |
+
outputs="text",
|
| 13 |
+
title="Find the manipulation: Analyze 'Real' or 'Manipulated' audio.",
|
| 14 |
+
description=(
|
| 15 |
+
"Analyze, detect and localize manipulation in an audio with a click of a button. Upload a .wav or .flac file."
|
| 16 |
+
),
|
| 17 |
+
cache_examples=True,
|
| 18 |
+
allow_flagging="never",
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
+
with demo:
|
| 22 |
+
gr.TabbedInterface([file_proc], ["Find Audio Manipulation"])
|
| 23 |
+
demo.queue(max_size=10)
|
| 24 |
+
demo.launch(share=True)
|
gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
.idea
|
requirements.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
gradio==3.50.2
|
| 2 |
+
torch==2.3.0
|