sr5434 commited on
Commit
a134e95
1 Parent(s): f17488c

Update for version 1.1

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
  generator = pipeline('text-generation', model='sr5434/gptQuotes', tokenizer='facebook/opt-350m')
5
 
6
  def generate(text):
7
- result = generator(text, max_length=30, num_return_sequences=1)
8
  return result[0]["generated_text"]
9
 
10
  examples = [
 
4
  generator = pipeline('text-generation', model='sr5434/gptQuotes', tokenizer='facebook/opt-350m')
5
 
6
  def generate(text):
7
+ result = generator("Generate a wise quote:\n" + text, max_length=30, num_return_sequences=1)
8
  return result[0]["generated_text"]
9
 
10
  examples = [