HipFil98 commited on
Commit
0b2deaa
·
verified ·
1 Parent(s): 054a7e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -184,14 +184,14 @@ def modify_xml(eaf_file, model="meta-llama/Llama-3.3-70B-Instruct"):
184
  model=model,
185
  messages=[
186
  {"role": "system", "content": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>"
187
- "You are a virtual assistant that helps the user in using an annotation software called ELAN."
188
  "An annotation file (eaf) is the document that contains all the information about tiers (their attributes and dependency relations), annotations, and time alignments and links to media files."
189
  "Your task is to modify the given eaf file and extract information strictly following the instructions given by the user.<|eot_id|>"},
190
  {"role": "user", "content": PROMPT.format(code=eaf_file)},
191
  {"role": "assistant", "content": "Here is your output: "}
192
  ],
193
  temperature=0.6,
194
- max_tokens=None
195
  )
196
 
197
  return response.choices[0].message.content
 
184
  model=model,
185
  messages=[
186
  {"role": "system", "content": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>"
187
+ "You are a linguistic annotation and code expert that helps the user in using an annotation software called ELAN."
188
  "An annotation file (eaf) is the document that contains all the information about tiers (their attributes and dependency relations), annotations, and time alignments and links to media files."
189
  "Your task is to modify the given eaf file and extract information strictly following the instructions given by the user.<|eot_id|>"},
190
  {"role": "user", "content": PROMPT.format(code=eaf_file)},
191
  {"role": "assistant", "content": "Here is your output: "}
192
  ],
193
  temperature=0.6,
194
+ max_tokens=128000
195
  )
196
 
197
  return response.choices[0].message.content