Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -87,16 +87,18 @@ if lang is not None:
|
|
87 |
st.write(f"If it exists, the ISO 639 Code Tables entry for the T variant would be at https://iso639-3.sil.org/code/{t_variant}")
|
88 |
st.write(f"If it exists, the ISO 639 Code Tables entry for the B variant would be at https://iso639-3.sil.org/code/{b_variant}")
|
89 |
obsolete_codes = pull_obsolete_codes(t_variant)
|
|
|
|
|
90 |
if obsolete_codes:
|
91 |
st.write(f"Obsolete codes from previous ISO-639 iterations, pulled from https://iso639-3.sil.org/code/{t_variant}:")
|
|
|
92 |
else:
|
93 |
-
obsolete_codes = pull_obsolete_codes(b_variant)
|
94 |
-
|
95 |
-
|
96 |
-
st.write(f"Obsolete codes from previous ISO-639 iterations, pulled from https://iso639-3.sil.org/code/{b_variant}:")
|
97 |
|
98 |
-
|
99 |
-
|
100 |
|
101 |
|
102 |
|
|
|
87 |
st.write(f"If it exists, the ISO 639 Code Tables entry for the T variant would be at https://iso639-3.sil.org/code/{t_variant}")
|
88 |
st.write(f"If it exists, the ISO 639 Code Tables entry for the B variant would be at https://iso639-3.sil.org/code/{b_variant}")
|
89 |
obsolete_codes = pull_obsolete_codes(t_variant)
|
90 |
+
|
91 |
+
#TODO: Cleanup this bit
|
92 |
if obsolete_codes:
|
93 |
st.write(f"Obsolete codes from previous ISO-639 iterations, pulled from https://iso639-3.sil.org/code/{t_variant}:")
|
94 |
+
st.write(obsolete_codes)
|
95 |
else:
|
96 |
+
obsolete_codes = pull_obsolete_codes(b_variant)
|
97 |
+
if obsolete_codes:
|
98 |
+
st.write(f"Obsolete codes from previous ISO-639 iterations, pulled from https://iso639-3.sil.org/code/{b_variant}:")
|
|
|
99 |
|
100 |
+
st.write(obsolete_codes)
|
101 |
+
|
102 |
|
103 |
|
104 |
|