Update app.py
Browse files
app.py
CHANGED
|
@@ -2,13 +2,13 @@ import streamlit as st
|
|
| 2 |
from api_helper import call_api # Keep the original API logic
|
| 3 |
|
| 4 |
# Streamlit Configurations (must come first)
|
| 5 |
-
st.set_page_config(page_title="💬
|
| 6 |
|
| 7 |
# Sidebar Configuration
|
| 8 |
with st.sidebar:
|
| 9 |
st.markdown("### DUBS Settings")
|
| 10 |
-
st.markdown("""[
|
| 11 |
-
st.markdown("""
|
| 12 |
|
| 13 |
# Chat History Initialization
|
| 14 |
if "messages" not in st.session_state:
|
|
@@ -31,7 +31,7 @@ if prompt := st.chat_input():
|
|
| 31 |
st.session_state["messages"].append({"role": "user", "content": prompt})
|
| 32 |
st.chat_message("user").write(prompt)
|
| 33 |
|
| 34 |
-
with st.spinner("
|
| 35 |
# Call the original API logic to get the response
|
| 36 |
response = call_api(prompt)
|
| 37 |
|
|
|
|
| 2 |
from api_helper import call_api # Keep the original API logic
|
| 3 |
|
| 4 |
# Streamlit Configurations (must come first)
|
| 5 |
+
st.set_page_config(page_title="💬 DUBSChat", layout="centered")
|
| 6 |
|
| 7 |
# Sidebar Configuration
|
| 8 |
with st.sidebar:
|
| 9 |
st.markdown("### DUBS Settings")
|
| 10 |
+
st.markdown("""[Other Features.]""")
|
| 11 |
+
st.markdown("""Comming Soon!""")
|
| 12 |
|
| 13 |
# Chat History Initialization
|
| 14 |
if "messages" not in st.session_state:
|
|
|
|
| 31 |
st.session_state["messages"].append({"role": "user", "content": prompt})
|
| 32 |
st.chat_message("user").write(prompt)
|
| 33 |
|
| 34 |
+
with st.spinner("Translating to Dubs language(Woof Woof!)"):
|
| 35 |
# Call the original API logic to get the response
|
| 36 |
response = call_api(prompt)
|
| 37 |
|