Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ if st.button("Generate Paraphrase"):
|
|
10 |
if user_word:
|
11 |
# Prompt the model with a structured paraphrase request
|
12 |
paraphrase_prompt= f"Write a Paraphrase about '{user_word}'.\n"
|
13 |
-
set_seed(42)
|
14 |
paraphrase = pipe(paraphrase_prompt, max_length=200, do_sample=True, num_return_sequences=1)[0]["generated_text"]
|
15 |
st.markdown("**Paraphrase:**")
|
16 |
st.markdown(paraphrase)
|
|
|
10 |
if user_word:
|
11 |
# Prompt the model with a structured paraphrase request
|
12 |
paraphrase_prompt= f"Write a Paraphrase about '{user_word}'.\n"
|
13 |
+
# set_seed(42)
|
14 |
paraphrase = pipe(paraphrase_prompt, max_length=200, do_sample=True, num_return_sequences=1)[0]["generated_text"]
|
15 |
st.markdown("**Paraphrase:**")
|
16 |
st.markdown(paraphrase)
|