Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,8 @@ pipeline = transformers.pipeline(
|
|
17 |
@spaces.GPU
|
18 |
def generate_text(input_text):
|
19 |
|
20 |
-
|
|
|
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,
|