Spaces:
Sleeping
Sleeping
Ahmed
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -6,11 +6,11 @@ instruct_model_name='truocpham/flan-dialogue-summary-checkpoint'
|
|
6 |
tokenizer = AutoTokenizer.from_pretrained(tokenizerModelName)
|
7 |
model = AutoModelForSeq2SeqLM.from_pretrained(instruct_model_name)
|
8 |
|
9 |
-
def SummarizeThis(
|
10 |
prompt = f"""
|
11 |
Summarize the following conversation.
|
12 |
|
13 |
-
{
|
14 |
|
15 |
Summary:
|
16 |
"""
|
|
|
6 |
tokenizer = AutoTokenizer.from_pretrained(tokenizerModelName)
|
7 |
model = AutoModelForSeq2SeqLM.from_pretrained(instruct_model_name)
|
8 |
|
9 |
+
def SummarizeThis(Dialogue):
|
10 |
prompt = f"""
|
11 |
Summarize the following conversation.
|
12 |
|
13 |
+
{Dialogue}
|
14 |
|
15 |
Summary:
|
16 |
"""
|