Kr08 commited on
Commit
498e38f
1 Parent(s): 9d868c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -17,7 +17,8 @@ pipeline = transformers.pipeline(
17
  @spaces.GPU
18
  def generate_text(input_text):
19
 
20
- output = pipeline(messages,
 
21
  max_new_tokens=256,
22
  )
23
  # input_tokens = model.tokenizer(input_text,
 
17
  @spaces.GPU
18
  def generate_text(input_text):
19
 
20
+ prompt = {"role": "system", "content": "Summarize the following: "+input_text}
21
+ output = pipeline(prompt,
22
  max_new_tokens=256,
23
  )
24
  # input_tokens = model.tokenizer(input_text,