hsr-builds-llm / app.py
aika42's picture
Update app.py
2de4da0 verified
raw
history blame
639 Bytes
# 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)