Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,6 +56,8 @@ def initialize_vector_store_index(data_path, service_context):
|
|
56 |
|
57 |
def main():
|
58 |
st.title("Cloudflare RAG")
|
|
|
|
|
59 |
|
60 |
# Configure and initialize components
|
61 |
llm = configure_llama_model()
|
@@ -63,8 +65,7 @@ def main():
|
|
63 |
service_context = configure_service_context(llm, embed_model)
|
64 |
index = initialize_vector_store_index("./", service_context)
|
65 |
|
66 |
-
|
67 |
-
user_input = st.text_input("Enter your message:")
|
68 |
|
69 |
if user_input:
|
70 |
# Generate response
|
|
|
56 |
|
57 |
def main():
|
58 |
st.title("Cloudflare RAG")
|
59 |
+
# User input
|
60 |
+
user_input = st.text_input("Enter your message:")
|
61 |
|
62 |
# Configure and initialize components
|
63 |
llm = configure_llama_model()
|
|
|
65 |
service_context = configure_service_context(llm, embed_model)
|
66 |
index = initialize_vector_store_index("./", service_context)
|
67 |
|
68 |
+
|
|
|
69 |
|
70 |
if user_input:
|
71 |
# Generate response
|