Update app.py
Browse files
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 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
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):
|