Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def get_valid_predictions(sentence, max_attempts=3, top_k=5):
|
|
46 |
# UI per l'inserimento del token e delle frasi
|
47 |
st.sidebar.header("Gestione Token e Frasi")
|
48 |
token_input = st.sidebar.text_input("Inserisci il token:")
|
49 |
-
phrase_input = st.sidebar.text_area("Inserisci la frase:")
|
50 |
if st.sidebar.button("Salva Token e Frase"):
|
51 |
if token_input and phrase_input:
|
52 |
save_token_and_phrase(token_input, phrase_input)
|
|
|
46 |
# UI per l'inserimento del token e delle frasi
|
47 |
st.sidebar.header("Gestione Token e Frasi")
|
48 |
token_input = st.sidebar.text_input("Inserisci il token:")
|
49 |
+
phrase_input = st.sidebar.text_area("Inserisci la frase:", value=st.session_state.get("input_text_value", ""))
|
50 |
if st.sidebar.button("Salva Token e Frase"):
|
51 |
if token_input and phrase_input:
|
52 |
save_token_and_phrase(token_input, phrase_input)
|