Spaces:
Sleeping
Sleeping
kz209
commited on
Commit
•
6c0544b
1
Parent(s):
7c162ef
update
Browse files
pages/summarization_playground.py
CHANGED
@@ -51,7 +51,7 @@ def generate_answer(sources, model_name, prompt):
|
|
51 |
def process_input(input_text, model_selection, prompt):
|
52 |
if input_text:
|
53 |
response = generate_answer(input_text, model_selection, prompt)
|
54 |
-
return f"## Original
|
55 |
else:
|
56 |
return "Please fill the input to generate outputs."
|
57 |
|
|
|
51 |
def process_input(input_text, model_selection, prompt):
|
52 |
if input_text:
|
53 |
response = generate_answer(input_text, model_selection, prompt)
|
54 |
+
return f"## Original Dialogue:\n\n{input_text}\n\n## Summarization:\n\n{response}"
|
55 |
else:
|
56 |
return "Please fill the input to generate outputs."
|
57 |
|