rajkumarrrk commited on
Commit
db3c2a3
·
verified ·
1 Parent(s): e6c11df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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
- # tempalte
15
  template = Template(
16
  """
17
  # Document:
18
- {{ text }}
19
 
20
  # Conversation:
21
- {{ conversation }}
 
 
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