Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ with st.form(key='my_form'):
|
|
25 |
c = st.number_input('Enter Number of words: ', 1)
|
26 |
submit_button = st.form_submit_button(label='Submit')
|
27 |
if submit_button:
|
28 |
-
tf.random.set_seed(
|
29 |
input_ids = tokenizer.encode(prompt, return_tensors='tf')
|
30 |
|
31 |
sample_output = GPT2.generate(
|
|
|
25 |
c = st.number_input('Enter Number of words: ', 1)
|
26 |
submit_button = st.form_submit_button(label='Submit')
|
27 |
if submit_button:
|
28 |
+
tf.random.set_seed(12)
|
29 |
input_ids = tokenizer.encode(prompt, return_tensors='tf')
|
30 |
|
31 |
sample_output = GPT2.generate(
|