Update app.py
Browse files
app.py
CHANGED
@@ -432,7 +432,8 @@ def whisper_main():
|
|
432 |
if filename is not None:
|
433 |
transcription = transcribe_audio(filename)
|
434 |
st.write(transcription)
|
435 |
-
|
|
|
436 |
# Define button descriptions
|
437 |
descriptions = {
|
438 |
"Generate Limericks: π": "Write ten random adult limericks based on quotes that are tweet length and make you laugh π",
|
@@ -449,28 +450,27 @@ def whisper_main():
|
|
449 |
|
450 |
# Add buttons to columns
|
451 |
if col1.button("Generate Limericks: π"):
|
452 |
-
StreamLLMChatResponse(descriptions["Generate Limericks: π"]
|
453 |
# Create columns
|
454 |
col1, col2, col3 = st.columns([1, 1, 1], gap="small")
|
455 |
# Add buttons to columns
|
456 |
if col1.button("Generate Limericks: π"):
|
457 |
-
StreamLLMChatResponse(descriptions["Generate Limericks: π"]
|
458 |
if col2.button("Wise Quotes π§"):
|
459 |
-
StreamLLMChatResponse(descriptions["Wise Quotes: π§"]
|
460 |
if col3.button("Funny Rhymes: π€"):
|
461 |
-
StreamLLMChatResponse(descriptions["Funny Rhymes: π€"]
|
462 |
col4, col5, col6 = st.columns([1, 1, 1], gap="small")
|
463 |
if col4.button("Medical Jokes: π"):
|
464 |
-
StreamLLMChatResponse(descriptions["Medical Jokes: π"]
|
465 |
if col5.button("Minnesota Humor βοΈ"):
|
466 |
-
StreamLLMChatResponse(descriptions["Minnesota Humor: βοΈ"]
|
467 |
if col6.button("Top Funny Stories π"):
|
468 |
-
StreamLLMChatResponse(descriptions["Top Funny Stories: π"]
|
469 |
col7 = st.columns(1, gap="small")
|
470 |
if col7[0].button("More Funny Rhymes: ποΈ"):
|
471 |
-
StreamLLMChatResponse(descriptions["More Funny Rhymes: ποΈ"]
|
472 |
|
473 |
-
|
474 |
def main():
|
475 |
|
476 |
st.title("AI Drome Llama")
|
|
|
432 |
if filename is not None:
|
433 |
transcription = transcribe_audio(filename)
|
434 |
st.write(transcription)
|
435 |
+
StreamLLMChatResponse(transcription)
|
436 |
+
|
437 |
# Define button descriptions
|
438 |
descriptions = {
|
439 |
"Generate Limericks: π": "Write ten random adult limericks based on quotes that are tweet length and make you laugh π",
|
|
|
450 |
|
451 |
# Add buttons to columns
|
452 |
if col1.button("Generate Limericks: π"):
|
453 |
+
StreamLLMChatResponse(descriptions["Generate Limericks: π"])
|
454 |
# Create columns
|
455 |
col1, col2, col3 = st.columns([1, 1, 1], gap="small")
|
456 |
# Add buttons to columns
|
457 |
if col1.button("Generate Limericks: π"):
|
458 |
+
StreamLLMChatResponse(descriptions["Generate Limericks: π"])
|
459 |
if col2.button("Wise Quotes π§"):
|
460 |
+
StreamLLMChatResponse(descriptions["Wise Quotes: π§"])
|
461 |
if col3.button("Funny Rhymes: π€"):
|
462 |
+
StreamLLMChatResponse(descriptions["Funny Rhymes: π€"])
|
463 |
col4, col5, col6 = st.columns([1, 1, 1], gap="small")
|
464 |
if col4.button("Medical Jokes: π"):
|
465 |
+
StreamLLMChatResponse(descriptions["Medical Jokes: π"])
|
466 |
if col5.button("Minnesota Humor βοΈ"):
|
467 |
+
StreamLLMChatResponse(descriptions["Minnesota Humor: βοΈ"])
|
468 |
if col6.button("Top Funny Stories π"):
|
469 |
+
StreamLLMChatResponse(descriptions["Top Funny Stories: π"])
|
470 |
col7 = st.columns(1, gap="small")
|
471 |
if col7[0].button("More Funny Rhymes: ποΈ"):
|
472 |
+
StreamLLMChatResponse(descriptions["More Funny Rhymes: ποΈ"])
|
473 |
|
|
|
474 |
def main():
|
475 |
|
476 |
st.title("AI Drome Llama")
|