awacke1 commited on
Commit
541ef0f
1 Parent(s): a17d8cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -44,13 +44,13 @@ prompt = f"Write instructions to teach anyone to write a discharge plan. List th
44
  st.set_page_config(page_title="GPT Streamlit Document Reasoner", layout="wide")
45
 
46
  # UI Controls
47
- should_save = st.sidebar.checkbox("💾 Save", value=True)
48
 
49
  # Function to add witty and humor buttons
50
  def add_witty_humor_buttons():
51
- with st.expander("Wit and Humor 🤣", expanded=True):
52
  # Tip about the Dromedary family
53
- st.tip("🔬 Fun Fact: Dromedaries, part of the camel family, have a single hump and are adapted to arid environments. Their 'superpowers' include the ability to survive without water for up to 7 days, thanks to their specialized blood cells and water storage in their hump.")
54
 
55
  # Define button descriptions
56
  descriptions = {
@@ -388,13 +388,13 @@ def main():
388
 
389
  # Add Wit and Humor buttons
390
  add_witty_humor_buttons()
391
-
392
- example_input = st.text_input("Enter your example text:", value=prompt)
393
- if st.button("Run Prompt With DromeLlama"):
394
  try:
395
  StreamLLMChatResponse(example_input)
396
  except:
397
- st.write('DromeLlama is asleep. Starting up now on A10 - please give 5 minutes then retry as KEDA scales up from zero to activate running container(s).')
398
 
399
 
400
  openai.api_key = os.getenv('OPENAI_KEY')
 
44
  st.set_page_config(page_title="GPT Streamlit Document Reasoner", layout="wide")
45
 
46
  # UI Controls
47
+ should_save = st.sidebar.checkbox("💾 Save", value=True, help="Save your session data.")
48
 
49
  # Function to add witty and humor buttons
50
  def add_witty_humor_buttons():
51
+ with st.expander("Wit and Humor 🤣", expanded=True, help="Expand to access various humor features."):
52
  # Tip about the Dromedary family
53
+ st.markdown("🔬 **Fun Fact**: Dromedaries, part of the camel family, have a single hump and are adapted to arid environments. Their 'superpowers' include the ability to survive without water for up to 7 days, thanks to their specialized blood cells and water storage in their hump.")
54
 
55
  # Define button descriptions
56
  descriptions = {
 
388
 
389
  # Add Wit and Humor buttons
390
  add_witty_humor_buttons()
391
+
392
+ example_input = st.text_input("Enter your example text:", value=prompt, help="Enter text to get a response from DromeLlama.")
393
+ if st.button("Run Prompt With DromeLlama", help="Click to run the prompt."):
394
  try:
395
  StreamLLMChatResponse(example_input)
396
  except:
397
+ st.write('DromeLlama is asleep. Starting up now on A10 - please give 5 minutes then retry as KEDA scales up from zero to activate running container(s).')
398
 
399
 
400
  openai.api_key = os.getenv('OPENAI_KEY')