Spaces:
Runtime error
Runtime error
Commit
·
19a04e8
1
Parent(s):
62dcdb1
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,3 @@
|
|
| 1 |
-
# https://github.com/logan-markewich/llama_index_starter_pack/blob/main/streamlit_vector/streamlit_demo.py
|
| 2 |
-
#
|
| 3 |
-
|
| 4 |
import os
|
| 5 |
import streamlit as st
|
| 6 |
from llama_index import GPTSimpleVectorIndex, SimpleDirectoryReader, ServiceContext
|
|
@@ -44,7 +41,7 @@ if api_key:
|
|
| 44 |
if index is None:
|
| 45 |
st.warning("Please enter your api key first.")
|
| 46 |
|
| 47 |
-
text = st.text_input("Query text:", value="
|
| 48 |
|
| 49 |
if st.button("Run Query") and text is not None:
|
| 50 |
response = query_index(index, text)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
import streamlit as st
|
| 3 |
from llama_index import GPTSimpleVectorIndex, SimpleDirectoryReader, ServiceContext
|
|
|
|
| 41 |
if index is None:
|
| 42 |
st.warning("Please enter your api key first.")
|
| 43 |
|
| 44 |
+
text = st.text_input("Query text:", value="How to use LLM Chain?")
|
| 45 |
|
| 46 |
if st.button("Run Query") and text is not None:
|
| 47 |
response = query_index(index, text)
|