TroglodyteDerivations
commited on
Updated line 10 | Updated lines 82-83
Browse files
app.py
CHANGED
@@ -7,6 +7,8 @@ from dataclasses import dataclass
|
|
7 |
import string
|
8 |
import IPython
|
9 |
|
|
|
|
|
10 |
# Part A: Import torch and torchaudio
|
11 |
st.write(torch.__version__)
|
12 |
st.write(torchaudio.__version__)
|
@@ -77,8 +79,8 @@ st.write(clean_transcript)
|
|
77 |
updated_clean_UPPERCASE_transcript = "OH||HI||ITS||ME||ABBY||CADABBY||DO||YOU||WANT||TO||WATCH||ME||PRACTICE||MY||MAGIC||I||AM||GOING||TO||TURN||THIS"
|
78 |
dictionary = {c: i for i, c in enumerate(labels)}
|
79 |
|
80 |
-
tokens = [dictionary[c] for c in
|
81 |
-
st.write(list(zip(
|
82 |
|
83 |
def get_trellis(emission, tokens, blank_id=0):
|
84 |
num_frame = emission.size(0)
|
|
|
7 |
import string
|
8 |
import IPython
|
9 |
|
10 |
+
st.image('abby_cadabby_.jpeg')
|
11 |
+
|
12 |
# Part A: Import torch and torchaudio
|
13 |
st.write(torch.__version__)
|
14 |
st.write(torchaudio.__version__)
|
|
|
79 |
updated_clean_UPPERCASE_transcript = "OH||HI||ITS||ME||ABBY||CADABBY||DO||YOU||WANT||TO||WATCH||ME||PRACTICE||MY||MAGIC||I||AM||GOING||TO||TURN||THIS"
|
80 |
dictionary = {c: i for i, c in enumerate(labels)}
|
81 |
|
82 |
+
tokens = [dictionary[c] for c in updated_clean_UPPERCASE_transcript]
|
83 |
+
st.write(list(zip(updated_clean_UPPERCASE_transcript, tokens)))
|
84 |
|
85 |
def get_trellis(emission, tokens, blank_id=0):
|
86 |
num_frame = emission.size(0)
|