Spaces:
Running
Running
rajkumarrrk
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -11,14 +11,16 @@ model = AutoModelForSequenceClassification.from_pretrained(model_name).to(device
|
|
11 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
12 |
|
13 |
|
14 |
-
#
|
15 |
template = Template(
|
16 |
"""
|
17 |
# Document:
|
18 |
-
{{
|
19 |
|
20 |
# Conversation:
|
21 |
-
{
|
|
|
|
|
22 |
"""
|
23 |
)
|
24 |
|
|
|
11 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
12 |
|
13 |
|
14 |
+
# template
|
15 |
template = Template(
|
16 |
"""
|
17 |
# Document:
|
18 |
+
{{ document }}
|
19 |
|
20 |
# Conversation:
|
21 |
+
{% for message in conversation %}
|
22 |
+
{{ message.role }}: {{ message.content }}
|
23 |
+
{% endfor %}
|
24 |
"""
|
25 |
)
|
26 |
|