Spaces:
Runtime error
Runtime error
Download src/app.py from sevvaliclal/WattBotRAG: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/sevvaliclal/WattBotRAG/resolve/main/src/app.py
- Command line
-
hf download hf://spaces/sevvaliclal/WattBotRAG/src/app.py
-
curl -L -o app.py https://huggingface.co/spaces/sevvaliclal/WattBotRAG/resolve/main/src/app.py
449 Bytes
| import streamlit as st | |
| import faiss | |
| import numpy as np | |
| from sentence_transformers import SentenceTransformer | |
| st.title("WattBot RAG Assistant") | |
| embed_model = SentenceTransformer("all-MiniLM-L6-v2") | |
| question = st.text_input("Ask a sustainability question") | |
| if question: | |
| st.write("Processing...") | |
| embedding = embed_model.encode([question]) | |
| st.write("Embedding generated.") | |
| st.write("⚠️ Full RAG logic should be connected here.") |