Vipul Swarup commited on
Commit
9e54b07
·
1 Parent(s): c863eab

something

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -53,13 +53,15 @@ submit = st.button('Generate')
53
  if submit:
54
  # Create a dict object from the JSON input
55
  inputDict = json.loads(user_input)
56
-
57
  # iterate through the dict, and create a new dict with each response from the LLM
58
  responseDict=[]
59
- for key in inputDict:
60
- response = load_answer(key, inputDict[key])
61
- st.subheader("Answer:")
62
- st.write(response)
 
 
63
 
64
 
65
 
 
53
  if submit:
54
  # Create a dict object from the JSON input
55
  inputDict = json.loads(user_input)
56
+ questionArray=inputDict['entries']
57
  # iterate through the dict, and create a new dict with each response from the LLM
58
  responseDict=[]
59
+ for row in questionArray:
60
+ print (row)
61
+ st.write(row)
62
+ #response = load_answer(key, inputDict[key])
63
+ #st.subheader("Answer:")
64
+ #st.write(response)
65
 
66
 
67