abanm commited on
Commit
207293e
·
verified ·
1 Parent(s): 72d772c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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="💬 DUBS Chatbot", layout="centered")
6
 
7
  # Sidebar Configuration
8
  with st.sidebar:
9
  st.markdown("### DUBS Settings")
10
- st.markdown("""[View the source code](https://github.com/streamlit/llm-examples/blob/main/Chatbot.py)""")
11
- st.markdown("""[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/streamlit/llm-examples?quickstart=1)""")
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("Fetching response..."):
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