Update app.py
Browse files
app.py
CHANGED
@@ -105,8 +105,8 @@ def main():
|
|
105 |
st.success(result_sentiment)
|
106 |
if st.checkbox("Spell Corrections"):
|
107 |
st.success(TextBlob(text).correct())
|
108 |
-
|
109 |
-
|
110 |
tokenizer, model = load_models()
|
111 |
if ok:
|
112 |
input_ids = tokenizer(text, return_tensors='pt').input_ids
|
|
|
105 |
st.success(result_sentiment)
|
106 |
if st.checkbox("Spell Corrections"):
|
107 |
st.success(TextBlob(text).correct())
|
108 |
+
if st.checkbox("Text Generation"):
|
109 |
+
ok = st.button("Generate")
|
110 |
tokenizer, model = load_models()
|
111 |
if ok:
|
112 |
input_ids = tokenizer(text, return_tensors='pt').input_ids
|