Spaces:
Sleeping
Sleeping
Rocky080808
commited on
Commit
•
881be60
1
Parent(s):
19dbb38
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
|
9 |
import streamlit as st
|
10 |
from transformers import pipeline
|
11 |
-
|
12 |
|
13 |
# function part - FOUR functions
|
14 |
# img2text()
|
@@ -30,10 +30,7 @@ def text2audio(story_text):
|
|
30 |
audio_data = pipe(story_text)
|
31 |
return audio_data
|
32 |
|
33 |
-
# main()
|
34 |
|
35 |
-
if __name__ == "__main__":
|
36 |
-
main()
|
37 |
|
38 |
def main():
|
39 |
|
@@ -70,3 +67,11 @@ def main():
|
|
70 |
format="audio/wav",
|
71 |
start_time=0,
|
72 |
sample_rate = audio_data['sampling_rate'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
import streamlit as st
|
10 |
from transformers import pipeline
|
11 |
+
from IPython.display import Audio
|
12 |
|
13 |
# function part - FOUR functions
|
14 |
# img2text()
|
|
|
30 |
audio_data = pipe(story_text)
|
31 |
return audio_data
|
32 |
|
|
|
33 |
|
|
|
|
|
34 |
|
35 |
def main():
|
36 |
|
|
|
67 |
format="audio/wav",
|
68 |
start_time=0,
|
69 |
sample_rate = audio_data['sampling_rate'])
|
70 |
+
|
71 |
+
|
72 |
+
# main()
|
73 |
+
|
74 |
+
if __name__ == "__main__":
|
75 |
+
main()
|
76 |
+
|
77 |
+
|