Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ generator = pipeline('text-generation', model="facebook/opt-1.3b", skip_special_
|
|
25 |
|
26 |
prompt= st.text_area('Your prompt here',
|
27 |
'''Hello, I'm am conscious and''')
|
28 |
-
answer = generator(prompt, max_length=
|
29 |
|
30 |
#answer = opt_model(prompt, model, tokenizer,)
|
31 |
#lst = ['ciao come stai sjfsbd dfhsdf fuahfuf feuhfu wefwu ']
|
|
|
25 |
|
26 |
prompt= st.text_area('Your prompt here',
|
27 |
'''Hello, I'm am conscious and''')
|
28 |
+
answer = generator(prompt, max_length=100,no_repeat_ngram_size=3, early_stopping=True, num_beams=10)
|
29 |
|
30 |
#answer = opt_model(prompt, model, tokenizer,)
|
31 |
#lst = ['ciao come stai sjfsbd dfhsdf fuahfuf feuhfu wefwu ']
|