Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
from rag_engine import query_rag_system
|
| 3 |
+
|
| 4 |
+
st.set_page_config(page_title="DisasterTracker AI", layout="wide")
|
| 5 |
+
st.title("🌍 DisasterTracker AI")
|
| 6 |
+
st.markdown("Ask questions about recent natural disasters worldwide")
|
| 7 |
+
|
| 8 |
+
user_query = st.text_input("Enter your question:", placeholder="e.g., What floods happened in Asia this week?")
|
| 9 |
+
|
| 10 |
+
if user_query:
|
| 11 |
+
with st.spinner("Retrieving information..."):
|
| 12 |
+
answer = query_rag_system(user_query)
|
| 13 |
+
st.markdown("### 🧠 Answer")
|
| 14 |
+
st.write(answer)
|