awacke1 commited on
Commit
3482893
β€’
1 Parent(s): f4c530b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
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: πŸ˜‚"] + ' 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")
 
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")