awacke1 commited on
Commit
2a6bbca
1 Parent(s): 2f082e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -52,10 +52,10 @@ def add_witty_humor_buttons():
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):
 
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):