mgfrantz commited on
Commit
00016df
·
verified ·
1 Parent(s): f9eb567

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -144,7 +144,7 @@ async def dynamic_few_shot_predict(text, n_examples=5):
144
  messages = [
145
  ChatMessage.from_str(dynamic_few_shot_prompt_tmpl.format(review=text, n_examples=n_examples))
146
  ]
147
- response = await dynamic_few_shot_structured_llm.achat(messages)
148
  return response.raw.rating
149
 
150
  def classify(review, num_examples, api_key):
 
144
  messages = [
145
  ChatMessage.from_str(dynamic_few_shot_prompt_tmpl.format(review=text, n_examples=n_examples))
146
  ]
147
+ response = await structured_llm.achat(messages)
148
  return response.raw.rating
149
 
150
  def classify(review, num_examples, api_key):