Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,8 @@ import base64
|
|
| 6 |
import gc
|
| 7 |
gc.enable()
|
| 8 |
|
|
|
|
|
|
|
| 9 |
import matplotlib.pyplot as plt
|
| 10 |
import soundfile as sf
|
| 11 |
from cv2 import resize, INTER_LINEAR
|
|
@@ -22,7 +24,9 @@ import streamlit as st
|
|
| 22 |
from PIL import Image
|
| 23 |
import streamlit as st
|
| 24 |
|
| 25 |
-
|
|
|
|
|
|
|
| 26 |
st.set_page_config(
|
| 27 |
page_title="Watch Me Talk",
|
| 28 |
page_icon=im,
|
|
@@ -587,7 +591,7 @@ if what == 'Upload audio file':
|
|
| 587 |
|
| 588 |
loaded = int(30 + (54 * f) / len(ema))
|
| 589 |
my_bar.progress(loaded)
|
| 590 |
-
text = TA.text_area("", "Rendering frame: " + str(f) + " of " + str(len(ema)), key = f +
|
| 591 |
|
| 592 |
|
| 593 |
def animate(frame_number):
|
|
|
|
| 6 |
import gc
|
| 7 |
gc.enable()
|
| 8 |
|
| 9 |
+
import os
|
| 10 |
+
|
| 11 |
import matplotlib.pyplot as plt
|
| 12 |
import soundfile as sf
|
| 13 |
from cv2 import resize, INTER_LINEAR
|
|
|
|
| 24 |
from PIL import Image
|
| 25 |
import streamlit as st
|
| 26 |
|
| 27 |
+
dir_path = os.path.dirname(os.path.realpath(__file__))
|
| 28 |
+
|
| 29 |
+
im = Image.open(dir_path + "/Logo.png")
|
| 30 |
st.set_page_config(
|
| 31 |
page_title="Watch Me Talk",
|
| 32 |
page_icon=im,
|
|
|
|
| 591 |
|
| 592 |
loaded = int(30 + (54 * f) / len(ema))
|
| 593 |
my_bar.progress(loaded)
|
| 594 |
+
text = TA.text_area("", "Rendering frame: " + str(f) + " of " + str(len(ema)), key = f + time.time())
|
| 595 |
|
| 596 |
|
| 597 |
def animate(frame_number):
|