Kieran Gookey commited on
Commit
c32566c
·
1 Parent(s): 2145acc

Output json now

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,6 +9,7 @@ import uuid
9
  from llama_index.vector_stores.types import MetadataFilters, ExactMatchFilter
10
  from typing import List
11
  from pydantic import BaseModel
 
12
 
13
  inference_api_key = st.secrets["INFRERENCE_API_TOKEN"]
14
 
@@ -69,7 +70,7 @@ if html_file is not None:
69
 
70
  response = query_engine.query(query)
71
 
72
- st.write(response.response)
73
 
74
  st.write(f'Price: {response.price}')
75
 
 
9
  from llama_index.vector_stores.types import MetadataFilters, ExactMatchFilter
10
  from typing import List
11
  from pydantic import BaseModel
12
+ import json
13
 
14
  inference_api_key = st.secrets["INFRERENCE_API_TOKEN"]
15
 
 
70
 
71
  response = query_engine.query(query)
72
 
73
+ st.code(json.dumps(response.response), language="json")
74
 
75
  st.write(f'Price: {response.price}')
76