Spaces:
Runtime error
Runtime error
test with tab
Browse files- .idea/.gitignore +8 -0
- .idea/TalkingFaceGeneration.iml +8 -0
- .idea/deployment.xml +14 -0
- .idea/inspectionProfiles/profiles_settings.xml +6 -0
- .idea/modules.xml +8 -0
- .idea/vcs.xml +6 -0
- app.py +16 -3
- example/audios/6343252661930009508_00092.wav +0 -0
- example/audios/6347195441777342774_00160.wav +0 -0
- example/audios/6350295549171504559_00004.wav +0 -0
- example/audios/6350921755403330389_00056.wav +0 -0
- example/images/ABOUT_00514.jpg +0 -0
- example/images/ABOUT_00994.jpg +0 -0
- example/images/ABOUT_test_00001.jpg +0 -0
- example/images/ABOUT_train_00001.jpg +0 -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/TalkingFaceGeneration.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,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="PublishConfigData" remoteFilesAllowedToDisappearOnAutoupload="false">
|
4 |
+
<serverData>
|
5 |
+
<paths name="10.26.128.77">
|
6 |
+
<serverdata>
|
7 |
+
<mappings>
|
8 |
+
<mapping local="$PROJECT_DIR$" web="/" />
|
9 |
+
</mappings>
|
10 |
+
</serverdata>
|
11 |
+
</paths>
|
12 |
+
</serverData>
|
13 |
+
</component>
|
14 |
+
</project>
|
.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/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/TalkingFaceGeneration.iml" filepath="$PROJECT_DIR$/.idea/TalkingFaceGeneration.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
CHANGED
@@ -1,7 +1,20 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
def greet(name):
|
4 |
-
return "Hello " + name + "
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
|
7 |
-
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def tfr(source_img, driving_audio):
|
4 |
+
return None
|
5 |
+
|
6 |
+
tfr_demo = gr.Interface(fn=tfr, inputs=["image", "audio"], outputs="video",
|
7 |
+
examples=[["./example/images/ABOUT_00514.jpg", "./example/audios/6343252661930009508_00092.wav"],
|
8 |
+
["./example/images/ABOUT_00994.jpg", "./example/audios/6350921755403330389_00056.wav"]])
|
9 |
+
|
10 |
def greet(name):
|
11 |
+
return "Hello, " + name + "!"
|
12 |
+
|
13 |
+
fr_demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
14 |
+
|
15 |
+
|
16 |
+
demo = gr.TabbedInterface([tfr_demo, fr_demo], ["Talking Face Generation", "Face Reenactment"])
|
17 |
+
|
18 |
|
19 |
+
info = demo.launch()
|
20 |
+
print(info)
|
example/audios/6343252661930009508_00092.wav
ADDED
Binary file (123 kB). View file
|
|
example/audios/6347195441777342774_00160.wav
ADDED
Binary file (184 kB). View file
|
|
example/audios/6350295549171504559_00004.wav
ADDED
Binary file (121 kB). View file
|
|
example/audios/6350921755403330389_00056.wav
ADDED
Binary file (145 kB). View file
|
|
example/images/ABOUT_00514.jpg
ADDED
example/images/ABOUT_00994.jpg
ADDED
example/images/ABOUT_test_00001.jpg
ADDED
example/images/ABOUT_train_00001.jpg
ADDED