Spaces:
Running
Running
# streamlit_app.py | |
import streamlit as st | |
import RAGEngine | |
st.title("๐ฎ Honkai Star Rail - Build Advisor (DeepSeek RAG)") | |
st.markdown("Ask me how to build any character, and I will tell you the **optimal setup**!") | |
# Initialize RAG | |
rag = RAGEngine() | |
# User Input | |
query = st.text_input("Enter your build question (e.g., How to build Jingliu?)") | |
if query: | |
st.write("Generating answer...") | |
with st.spinner("Consulting the Stellaron Hunters..."): | |
stream = rag.stream_answer(query) | |
response = st.empty() | |
text = "" | |
for chunk in stream: | |
text += chunk | |
response.markdown(text) | |