fix: app
Browse files- README.md +1 -0
- app.py +2 -3
- requirements.txt +2 -2
README.md
CHANGED
@@ -5,6 +5,7 @@ colorFrom: indigo
|
|
5 |
colorTo: indigo
|
6 |
sdk: gradio
|
7 |
python_version: 3.8.9
|
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
duplicated_from: PaddlePaddle/wav2lip
|
|
|
5 |
colorTo: indigo
|
6 |
sdk: gradio
|
7 |
python_version: 3.8.9
|
8 |
+
sdk_version: 2.7.5.2
|
9 |
app_file: app.py
|
10 |
pinned: false
|
11 |
duplicated_from: PaddlePaddle/wav2lip
|
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import os
|
2 |
-
os.system("pip install
|
3 |
-
os.system("python -m pip install paddlepaddle-gpu==2.2.1.post112 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html")
|
4 |
os.system("hub install wav2lip==1.0.0")
|
5 |
import gradio as gr
|
6 |
import paddlehub as hub
|
@@ -18,4 +17,4 @@ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2008.100
|
|
18 |
examples=[['monatest.jpeg',"game.wav"]]
|
19 |
iface = gr.Interface(inference, [gr.inputs.Image(type="filepath"),gr.inputs.Audio(source="microphone", type="filepath")],
|
20 |
outputs=gr.outputs.Video(label="Output Video"),examples=examples,title=title,article=article,description=description)
|
21 |
-
iface.launch(cache_examples=True,enable_queue=True)
|
|
|
1 |
import os
|
2 |
+
os.system("python -m pip install paddlepaddle-gpu==2.4.1 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html")
|
|
|
3 |
os.system("hub install wav2lip==1.0.0")
|
4 |
import gradio as gr
|
5 |
import paddlehub as hub
|
|
|
17 |
examples=[['monatest.jpeg',"game.wav"]]
|
18 |
iface = gr.Interface(inference, [gr.inputs.Image(type="filepath"),gr.inputs.Audio(source="microphone", type="filepath")],
|
19 |
outputs=gr.outputs.Video(label="Output Video"),examples=examples,title=title,article=article,description=description)
|
20 |
+
iface.launch(cache_examples=True,enable_queue=True)
|
requirements.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
|
|
1 |
paddlehub==2.3.1
|
2 |
-
|
3 |
-
numpy==1.23.5
|
|
|
1 |
+
gradio==2.7.5.2
|
2 |
paddlehub==2.3.1
|
3 |
+
numpy==1.23.5
|
|