alpcansoydas commited on
Commit
aa6b072
·
verified ·
1 Parent(s): eb571df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -59,10 +59,6 @@ llm = HuggingFaceEndpoint(
59
  template_extract_features = '''
60
  You are a product feature extractor bot. Your task is to determine features like Brand, Model, Type, RAM, Storage, etc., from the given product description and web search results.
61
 
62
- Given product description: {TEXT}
63
- Relevant web search results:
64
- {SEARCH_RESULTS}
65
-
66
  Return features in JSON format with keys like Brand, Model, Type, RAM, Storage, and others.
67
  Your response MUST only include a valid JSON object and nothing else.
68
 
@@ -74,6 +70,8 @@ Example:
74
  "RAM": "4GB",
75
  "Storage": "128GB"
76
  }}
 
 
77
  '''
78
 
79
  json_output_parser = JsonOutputParser()
 
59
  template_extract_features = '''
60
  You are a product feature extractor bot. Your task is to determine features like Brand, Model, Type, RAM, Storage, etc., from the given product description and web search results.
61
 
 
 
 
 
62
  Return features in JSON format with keys like Brand, Model, Type, RAM, Storage, and others.
63
  Your response MUST only include a valid JSON object and nothing else.
64
 
 
70
  "RAM": "4GB",
71
  "Storage": "128GB"
72
  }}
73
+ Answer with JSON for the following:
74
+ Given product description and web search results: {TEXT} {SEARCH_RESULTS}
75
  '''
76
 
77
  json_output_parser = JsonOutputParser()