ShravanHN commited on
Commit
a54d256
·
1 Parent(s): d7df98b

modified the prompt

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def chat_llama3_8b(message: str,
63
  str: The generated response.
64
  """
65
  conversation = []
66
- message+= "Extract all relevant keywords and add quantity from the following text and format the result in nested JSON:"
67
  for user, assistant in history:
68
  conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
69
  conversation.append({"role": "user", "content": message})
 
63
  str: The generated response.
64
  """
65
  conversation = []
66
+ message+= "Extract all relevant keywords and add quantity from the following text and format the result in nested JSON, ignoring personal details and focusing only on the scope of work as shown in the example: {'lobby': {'frcm': {'replace': {'carpet': 1, 'carpet_pad': 1, 'base': 1, 'window_treatments': 1, 'artwork_and_decorative_accessories': 1, 'portable_lighting': 1, 'upholstered_furniture_and_decorative_pillows': 1, 'millwork': 1} } } }"
67
  for user, assistant in history:
68
  conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
69
  conversation.append({"role": "user", "content": message})