Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,12 @@ from gpt_index import GPTSimpleVectorIndex
|
|
| 6 |
index = GPTSimpleVectorIndex.load_from_disk('index-4.json')
|
| 7 |
|
| 8 |
# Define the app layout
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
query = st.text_input('Enter a query:')
|
| 11 |
if query:
|
| 12 |
result = index.query(query)
|
|
|
|
| 6 |
index = GPTSimpleVectorIndex.load_from_disk('index-4.json')
|
| 7 |
|
| 8 |
# Define the app layout
|
| 9 |
+
# Define the app layout
|
| 10 |
+
st.title('Ask Patrick Collison Anything')
|
| 11 |
+
header = st.container()
|
| 12 |
+
with header:
|
| 13 |
+
st.image('https://c1.thejournal.ie/media/2012/02/PCI-3-PATRICK-COLLISS00078736-752x501.jpg', width=376)
|
| 14 |
+
|
| 15 |
query = st.text_input('Enter a query:')
|
| 16 |
if query:
|
| 17 |
result = index.query(query)
|