Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,8 @@ 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 |
|
53 |
# Define button descriptions
|
54 |
descriptions = {
|
@@ -381,19 +383,18 @@ def get_zip_download_link(zip_file):
|
|
381 |
|
382 |
def main():
|
383 |
|
384 |
-
|
385 |
-
st.title(" DrLlama7B")
|
386 |
prompt = f"Write ten funny jokes that are tweet length stories that make you laugh. Show as markdown outline with emojis for each."
|
387 |
-
|
388 |
# Add Wit and Humor buttons
|
389 |
add_witty_humor_buttons()
|
390 |
|
391 |
example_input = st.text_input("Enter your example text:", value=prompt)
|
392 |
-
if st.button("Run Prompt With
|
393 |
try:
|
394 |
StreamLLMChatResponse(example_input)
|
395 |
except:
|
396 |
-
st.write('
|
397 |
|
398 |
|
399 |
openai.api_key = os.getenv('OPENAI_KEY')
|
|
|
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 = {
|
|
|
383 |
|
384 |
def main():
|
385 |
|
386 |
+
st.title("DromeLlama7B")
|
|
|
387 |
prompt = f"Write ten funny jokes that are tweet length stories that make you laugh. Show as markdown outline with emojis for each."
|
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')
|