Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,6 +45,7 @@ async def get_answer(request : Request) -> dict :
|
|
| 45 |
)
|
| 46 |
|
| 47 |
product_details : dict = product_api_response.json()
|
|
|
|
| 48 |
product_api_message : str = product_details['message']
|
| 49 |
|
| 50 |
if product_api_message != 'Product Data Found' : return {'answer' : 'Sorry we couldnt find information about this product in our databses, can you please try again ?'}
|
|
|
|
| 45 |
)
|
| 46 |
|
| 47 |
product_details : dict = product_api_response.json()
|
| 48 |
+
print(product_details)
|
| 49 |
product_api_message : str = product_details['message']
|
| 50 |
|
| 51 |
if product_api_message != 'Product Data Found' : return {'answer' : 'Sorry we couldnt find information about this product in our databses, can you please try again ?'}
|