awacke1 commited on
Commit
f4c530b
Β·
1 Parent(s): 790dc0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +37 -0
app.py CHANGED
@@ -433,7 +433,44 @@ def whisper_main():
433
  transcription = transcribe_audio(filename)
434
  st.write(transcription)
435
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
436
 
 
437
  def main():
438
 
439
  st.title("AI Drome Llama")
 
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 🎭",
439
+ "Wise Quotes: πŸ§™": "Generate ten wise quotes that are tweet length πŸ¦‰",
440
+ "Funny Rhymes: 🎀": "Create ten funny rhymes that are tweet length 🎢",
441
+ "Medical Jokes: πŸ’‰": "Create ten medical jokes that are tweet length πŸ₯",
442
+ "Minnesota Humor: ❄️": "Create ten jokes about Minnesota that are tweet length 🌨️",
443
+ "Top Funny Stories: πŸ“–": "Create ten funny stories that are tweet length πŸ“š",
444
+ "More Funny Rhymes: πŸŽ™οΈ": "Create ten more funny rhymes that are tweet length 🎡"
445
+ }
446
+
447
+ # Create columns
448
+ col1, col2, col3 = st.columns([1, 1, 1], gap="small")
449
+
450
+ # Add buttons to columns
451
+ if col1.button("Generate Limericks: πŸ˜‚"):
452
+ StreamLLMChatResponse(descriptions["Generate Limericks: πŸ˜‚"] + ' using the context information from this transcript: ' + transcription)
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: πŸ˜‚"] + ' using the context information from this transcript: ' + transcription)
458
+ if col2.button("Wise Quotes πŸ§™"):
459
+ StreamLLMChatResponse(descriptions["Wise Quotes: πŸ§™"] + ' using the context information from this transcript: ' + transcription)
460
+ if col3.button("Funny Rhymes: 🎀"):
461
+ StreamLLMChatResponse(descriptions["Funny Rhymes: 🎀"] + ' using the context information from this transcript: ' + transcription)
462
+ col4, col5, col6 = st.columns([1, 1, 1], gap="small")
463
+ if col4.button("Medical Jokes: πŸ’‰"):
464
+ StreamLLMChatResponse(descriptions["Medical Jokes: πŸ’‰"] + ' using the context information from this transcript: ' + transcription)
465
+ if col5.button("Minnesota Humor ❄️"):
466
+ StreamLLMChatResponse(descriptions["Minnesota Humor: ❄️"] + ' using the context information from this transcript: ' + transcription)
467
+ if col6.button("Top Funny Stories πŸ“–"):
468
+ StreamLLMChatResponse(descriptions["Top Funny Stories: πŸ“–"] + ' using the context information from this transcript: ' + transcription)
469
+ col7 = st.columns(1, gap="small")
470
+ if col7[0].button("More Funny Rhymes: πŸŽ™οΈ"):
471
+ StreamLLMChatResponse(descriptions["More Funny Rhymes: πŸŽ™οΈ"] + ' using the context information from this transcript: ' + transcription)
472
 
473
+
474
  def main():
475
 
476
  st.title("AI Drome Llama")