Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,3 @@
|
|
| 1 |
-
"""
|
| 2 |
-
DocuMind - Streamlit Frontend for HuggingFace Spaces
|
| 3 |
-
Simplified version that works with existing FastAPI backend
|
| 4 |
-
"""
|
| 5 |
-
|
| 6 |
-
"""
|
| 7 |
-
DocuMind - Streamlit Frontend for HuggingFace Spaces
|
| 8 |
-
Simplified version that works with existing FastAPI backend
|
| 9 |
-
"""
|
| 10 |
|
| 11 |
import streamlit as st
|
| 12 |
import json
|
|
@@ -18,8 +9,8 @@ import requests
|
|
| 18 |
# STREAMLIT CONFIG (Must be first)
|
| 19 |
# ============================================================================
|
| 20 |
st.set_page_config(
|
| 21 |
-
page_title="DocuMind -
|
| 22 |
-
page_icon="
|
| 23 |
layout="wide",
|
| 24 |
initial_sidebar_state="expanded"
|
| 25 |
)
|
|
@@ -70,7 +61,7 @@ def safe_api_call(method, endpoint, **kwargs):
|
|
| 70 |
# ============================================================================
|
| 71 |
# STREAMLIT FRONTEND UI
|
| 72 |
# ============================================================================
|
| 73 |
-
st.title("
|
| 74 |
st.markdown("**Enterprise Document Intelligence Chatbot**")
|
| 75 |
st.markdown("---")
|
| 76 |
|
|
@@ -129,7 +120,7 @@ with st.sidebar:
|
|
| 129 |
st.info("Backend not ready yet...")
|
| 130 |
|
| 131 |
# --- Main Chat Interface ---
|
| 132 |
-
st.subheader("💬 Chat with Your Documents")
|
| 133 |
|
| 134 |
# Initialize session state
|
| 135 |
if "messages" not in st.session_state:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
import streamlit as st
|
| 3 |
import json
|
|
|
|
| 9 |
# STREAMLIT CONFIG (Must be first)
|
| 10 |
# ============================================================================
|
| 11 |
st.set_page_config(
|
| 12 |
+
page_title="DocuMind - RAG ChatBOT",
|
| 13 |
+
page_icon="📃",
|
| 14 |
layout="wide",
|
| 15 |
initial_sidebar_state="expanded"
|
| 16 |
)
|
|
|
|
| 61 |
# ============================================================================
|
| 62 |
# STREAMLIT FRONTEND UI
|
| 63 |
# ============================================================================
|
| 64 |
+
st.title("📃 DocuMind")
|
| 65 |
st.markdown("**Enterprise Document Intelligence Chatbot**")
|
| 66 |
st.markdown("---")
|
| 67 |
|
|
|
|
| 120 |
st.info("Backend not ready yet...")
|
| 121 |
|
| 122 |
# --- Main Chat Interface ---
|
| 123 |
+
#st.subheader("💬 Chat with Your Documents")
|
| 124 |
|
| 125 |
# Initialize session state
|
| 126 |
if "messages" not in st.session_state:
|