Error while using streamlit with Real-time LLM App


I am getting this problem while using LLM app.

I have tried below instructions -

Looks like your app’s having a bit of trouble talking to the server. Let’s try a few things:

  1. First check if this error comes up every time or just sometimes.

  2. Before the requests.post line in ui.py, add print statements to output the url , data , and json variables. This helps confirm what you’re sending. Something like

print("URL:", url) print("Data:", data) print("JSON:", json) And then run your app again, and you should see the details in your console. 3, To pinpoint the issue, after you see the URL and data printed in your app, head to ReqBin (https://reqbin.com/), paste the URL and data into the respective fields, and click ‘Run’ to simulate the request.

on following the above instructions, I got this output-

URL: http://0.0.0.0:8080/
Data: {'query': 'show discount'}
JSON: <module 'json' from '/Users/deepshikhar/anaconda3/envs/discount_app/lib/python3.11/json/__init__.py'>
2023-12-29 11:06:33.450 Uncaught app exception

and after pasting the URL and data in reqbin, I am getting this -

Anyone know how to solve this error