Illia56 commited on
Commit
e5b0d64
Β·
1 Parent(s): 0bfc768

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -12,7 +12,7 @@ with st.sidebar:
12
  # Add a selector in the sidebar using the dictionary's keys
13
  selected_language_name = st.sidebar.selectbox("Select Language", list(GOOGLE_LANGUAGES_TO_CODES.keys()))
14
  code_interpreter = st.sidebar.toggle("Code Interpreter", value=True)
15
- system_prompt = st.sidebar.text_input("System prompt for code interpreter", value = " .Rule 1: If a user requests a code snippet, provide only one that can run in a Streamlit app without requiring additional libraries.")
16
  useSystemPrompt = st.sidebar.toggle("Use System prompt", value=True)
17
  exportToReplIt = st.sidebar.toggle("Export to repl.it", value=False)
18
  showImages = st.sidebar.toggle("Show images", value=True)
@@ -25,8 +25,19 @@ bard = AsyncBard(token=os.getenv("_BARD_API_KEY"), language=selected_language_co
25
 
26
  TITLE = "Palm 2🌴 Chatbot"
27
  DESCRIPTION = """
 
 
 
 
 
 
 
 
 
 
28
  """
29
 
 
30
  # Streamlit UI
31
  st.title(TITLE)
32
  st.write(DESCRIPTION)
 
12
  # Add a selector in the sidebar using the dictionary's keys
13
  selected_language_name = st.sidebar.selectbox("Select Language", list(GOOGLE_LANGUAGES_TO_CODES.keys()))
14
  code_interpreter = st.sidebar.toggle("Code Interpreter", value=True)
15
+ system_prompt = st.sidebar.text_input("System prompt for code interpreter", value = " . Rule 1: If a user requests a code snippet, provide only one that can run in a Streamlit app without requiring additional libraries.")
16
  useSystemPrompt = st.sidebar.toggle("Use System prompt", value=True)
17
  exportToReplIt = st.sidebar.toggle("Export to repl.it", value=False)
18
  showImages = st.sidebar.toggle("Show images", value=True)
 
25
 
26
  TITLE = "Palm 2🌴 Chatbot"
27
  DESCRIPTION = """
28
+ Welcome to the Palm 2🌴 Chatbot interface!
29
+
30
+ This app allows you to interact with the Palm 2🌴 Chatbot powered by the Bard API. You can:
31
+ - Select a language for the chatbot.
32
+ - Decide if you want the chatbot to interpret code.
33
+ - Use a system prompt to guide the chatbot's responses.
34
+ - Export code snippets to repl.it.
35
+ - Choose to display images in the chatbot's responses.
36
+
37
+ Simply type in your question or prompt in the chat input below and get a response from Palm 2🌴!
38
  """
39
 
40
+
41
  # Streamlit UI
42
  st.title(TITLE)
43
  st.write(DESCRIPTION)