Update app.py
Browse files
app.py
CHANGED
@@ -15,13 +15,13 @@ def translate_to_nynorsk(model, tokenizer, text):
|
|
15 |
)
|
16 |
return tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)
|
17 |
|
18 |
-
st.title("
|
19 |
|
20 |
expander = st.sidebar.expander("About")
|
21 |
expander.write("This web app allows you to translate a text in Norwegian Bokmål to Norwegian Nynorsk.")
|
22 |
|
23 |
-
st.sidebar.header("
|
24 |
-
option = st.
|
25 |
|
26 |
|
27 |
text = st.text_input(f"Bokmål text: ")
|
|
|
15 |
)
|
16 |
return tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)
|
17 |
|
18 |
+
st.title("Bokmål To Nynorsk")
|
19 |
|
20 |
expander = st.sidebar.expander("About")
|
21 |
expander.write("This web app allows you to translate a text in Norwegian Bokmål to Norwegian Nynorsk.")
|
22 |
|
23 |
+
st.sidebar.header("Choose or write your own.")
|
24 |
+
option = st.dropdown("", ["Text summarization", "Dette er et eksempel.", "Dette er en test."])
|
25 |
|
26 |
|
27 |
text = st.text_input(f"Bokmål text: ")
|