awacke1 commited on
Commit
39b0e58
1 Parent(s): 1f3311a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -47,6 +47,17 @@ st.set_page_config(page_title="GPT Streamlit Document Reasoner", layout="wide")
47
  should_save = st.sidebar.checkbox("💾 Save", value=True)
48
 
49
  # Functions
 
 
 
 
 
 
 
 
 
 
 
50
  def StreamLLMChatResponse(prompt):
51
  endpoint_url = API_URL
52
  hf_token = API_KEY
 
47
  should_save = st.sidebar.checkbox("💾 Save", value=True)
48
 
49
  # Functions
50
+
51
+ # Function to add witty and humor buttons
52
+ def add_witty_humor_buttons():
53
+ with st.expander("Wit and Humor 🤣", expanded=True):
54
+ button_description = "Write ten random adult limericks based on quotes that are tweet length and make you laugh 🎭"
55
+ button_label = "Generate Limericks 😂"
56
+
57
+ if st.button(button_label):
58
+ StreamLLMChatResponse(button_description)
59
+
60
+ # Function to Stream Inference Client for Inference Endpoint Responses
61
  def StreamLLMChatResponse(prompt):
62
  endpoint_url = API_URL
63
  hf_token = API_KEY