Update pages/GPT.py
Browse files- pages/GPT.py +1 -1
pages/GPT.py
CHANGED
@@ -46,7 +46,7 @@ else:
|
|
46 |
|
47 |
if text_input:
|
48 |
prompt = preprocess_text(text_input, tokenizer)
|
49 |
-
result = predict_sentiment(model, prompt,
|
50 |
for i in result:
|
51 |
st.write(textwrap.fill(tokenizer.decode(i), max_len))
|
52 |
if st.button('Next'):
|
|
|
46 |
|
47 |
if text_input:
|
48 |
prompt = preprocess_text(text_input, tokenizer)
|
49 |
+
result = predict_sentiment(model, prompt, temp, num_generate)
|
50 |
for i in result:
|
51 |
st.write(textwrap.fill(tokenizer.decode(i), max_len))
|
52 |
if st.button('Next'):
|