File size: 639 Bytes
c073f18
 
1d710c4
2de4da0
1d710c4
c073f18
 
1d710c4
 
 
 
c073f18
 
1d710c4
 
c073f18
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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)