awacke1 commited on
Commit
58173f5
โ€ข
1 Parent(s): 2a6bbca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -7
app.py CHANGED
@@ -49,13 +49,41 @@ should_save = st.sidebar.checkbox("๐Ÿ’พ Save", value=True)
49
  # Function to add witty and humor buttons
50
  def add_witty_humor_buttons():
51
  with st.expander("Wit and Humor ๐Ÿคฃ", expanded=True):
52
- button_description = "Write ten random adult limericks based on quotes that are tweet length and make you laugh ๐ŸŽญ"
53
- button_label = "Generate Limericks ๐Ÿ˜‚"
54
- if st.button(button_label):
55
- try:
56
- StreamLLMChatResponse(button_description)
57
- except:
58
- st.write('Dr. Llama is asleep. Starting up now on A10 - please give 5 minutes then retry as KEDA scales up from zero to activate running container(s).')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
  # Function to Stream Inference Client for Inference Endpoint Responses
61
  def StreamLLMChatResponse(prompt):
 
49
  # Function to add witty and humor buttons
50
  def add_witty_humor_buttons():
51
  with st.expander("Wit and Humor ๐Ÿคฃ", expanded=True):
52
+
53
+ # Button for Generating Limericks
54
+ limerick_description = "Write ten random adult limericks based on quotes that are tweet length and make you laugh ๐ŸŽญ"
55
+ if st.button("Generate Limericks ๐Ÿ˜‚"):
56
+ StreamLLMChatResponse(limerick_description)
57
+
58
+ # Button for Wise Quotes
59
+ wise_description = "Generate ten wise quotes that are tweet length ๐Ÿฆ‰"
60
+ if st.button("Wise Quotes ๐Ÿง™"):
61
+ StreamLLMChatResponse(wise_description)
62
+
63
+ # Button for Funny Rhymes
64
+ rhyme_description = "Create ten funny rhymes that are tweet length ๐ŸŽถ"
65
+ if st.button("Funny Rhymes ๐ŸŽค"):
66
+ StreamLLMChatResponse(rhyme_description)
67
+
68
+ # Button for Medical Jokes
69
+ medical_description = "Create ten medical jokes that are tweet length ๐Ÿฅ"
70
+ if st.button("Medical Jokes ๐Ÿ’‰"):
71
+ StreamLLMChatResponse(medical_description)
72
+
73
+ # Button for Minnesota Humor
74
+ minnesota_description = "Create ten jokes about Minnesota that are tweet length ๐ŸŒจ๏ธ"
75
+ if st.button("Minnesota Humor โ„๏ธ"):
76
+ StreamLLMChatResponse(minnesota_description)
77
+
78
+ # Button for Top Funny Stories
79
+ funny_stories_description = "Create ten funny stories that are tweet length ๐Ÿ“š"
80
+ if st.button("Top Funny Stories ๐Ÿ“–"):
81
+ StreamLLMChatResponse(funny_stories_description)
82
+
83
+ # Button for Funny Rhymes (another one)
84
+ funny_rhymes_description = "Create ten more funny rhymes that are tweet length ๐ŸŽต"
85
+ if st.button("More Funny Rhymes ๐ŸŽ™๏ธ"):
86
+ StreamLLMChatResponse(funny_rhymes_description)
87
 
88
  # Function to Stream Inference Client for Inference Endpoint Responses
89
  def StreamLLMChatResponse(prompt):