Spaces:
Runtime error
Runtime error
Headers and such
Browse files
app.py
CHANGED
@@ -77,7 +77,10 @@ def get_langcode_with_description(input_code):
|
|
77 |
|
78 |
|
79 |
if __name__ == "__main__":
|
80 |
-
|
|
|
|
|
|
|
81 |
supported_codes = get_supported_codes()
|
82 |
index_of_desired_default = supported_codes.index("ipa")
|
83 |
with st.form("Allosaurus form"):
|
@@ -93,7 +96,7 @@ if __name__ == "__main__":
|
|
93 |
|
94 |
st.write(f"Instructing Allosaurus to recognize using language {langcode}. That is, {description}")
|
95 |
|
96 |
-
|
97 |
uploaded_files = st.file_uploader("Choose a file", type=[
|
98 |
".wav",
|
99 |
".mp3",
|
@@ -101,7 +104,7 @@ if __name__ == "__main__":
|
|
101 |
accept_multiple_files=True,
|
102 |
)
|
103 |
|
104 |
-
submitted = st.form_submit_button("
|
105 |
if submitted:
|
106 |
results = {} # for better download/display
|
107 |
|
|
|
77 |
|
78 |
|
79 |
if __name__ == "__main__":
|
80 |
+
st.header("Phonemize Audio files with [Allosaurus](https://github.com/xinjli/allosaurus)")
|
81 |
+
st.write("Allosaurus is a pretrained universal phone recognizer. It can be used to recognize phones in more than 2000 languages. It is written by Li, Xinjian and Dalmia, Siddharth and Li, Juncheng and Lee, Matthew and Littell, Patrick and Yao, Jiali and Anastasopoulos, Antonios and Mortensen, David R and Neubig, Graham and Black, Alan W and Florian, Metze. [Click here to visit their repository](https://github.com/xinjli/allosaurus)")
|
82 |
+
st.write("I, [Colin Leong](cdleong.github.io) did not create Allosaurus, but I have created this web app (kindly hosted by Hugging Face) to make it convenient to use: simply upload your files below!")
|
83 |
+
st.write(f"**Feedback:** Provide feedback regarding this web app at https://twitter.com/cleong110, or via slack: https://masakhane-nlp.slack.com/archives/D01DU3MHP7A")
|
84 |
supported_codes = get_supported_codes()
|
85 |
index_of_desired_default = supported_codes.index("ipa")
|
86 |
with st.form("Allosaurus form"):
|
|
|
96 |
|
97 |
st.write(f"Instructing Allosaurus to recognize using language {langcode}. That is, {description}")
|
98 |
|
99 |
+
st.subheader("Upload your files here")
|
100 |
uploaded_files = st.file_uploader("Choose a file", type=[
|
101 |
".wav",
|
102 |
".mp3",
|
|
|
104 |
accept_multiple_files=True,
|
105 |
)
|
106 |
|
107 |
+
submitted = st.form_submit_button("Run phone recognition!")
|
108 |
if submitted:
|
109 |
results = {} # for better download/display
|
110 |
|