root-sajjan
commited on
sdf
Browse files- llm/inference.py +3 -2
llm/inference.py
CHANGED
@@ -98,8 +98,9 @@ def get_name(url, object):
|
|
98 |
llm_result = completion.choices[0].message['content']
|
99 |
print(llm_result)
|
100 |
# print(f'\n\nThat is the output')
|
101 |
-
|
102 |
-
|
|
|
103 |
print(f'\n\nResult brand and price:{result}')
|
104 |
print(f'\n\nThat is the output')
|
105 |
# result2 = extract_info(llm_result)
|
|
|
98 |
llm_result = completion.choices[0].message['content']
|
99 |
print(llm_result)
|
100 |
# print(f'\n\nThat is the output')
|
101 |
+
|
102 |
+
print(f"Extracting from the output now, function calling")
|
103 |
+
result = extract_product_info(llm_result)
|
104 |
print(f'\n\nResult brand and price:{result}')
|
105 |
print(f'\n\nThat is the output')
|
106 |
# result2 = extract_info(llm_result)
|