Spaces:
Runtime error
Runtime error
Vipul Swarup commited on
Commit ·
9e54b07
1
Parent(s): c863eab
something
Browse files
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
|
| 60 |
-
|
| 61 |
-
st.
|
| 62 |
-
|
|
|
|
|
|
|
| 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 |
|