jsbeaudry commited on
Commit
8623526
·
verified ·
1 Parent(s): 19fe854

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -358,10 +358,16 @@ async def demo_conversation():
358
 
359
 
360
 
361
- await demo_conversation()
362
 
363
  # Create the async function wrapper for Gradio
364
  async def process_audio_gradio(audio_file, system_prompt_input):
 
 
 
 
 
 
 
365
  """Processes audio file and system prompt for Gradio interface."""
366
  if audio_file is None:
367
  return "Please upload an audio file.", "", "", None
 
358
 
359
 
360
 
 
361
 
362
  # Create the async function wrapper for Gradio
363
  async def process_audio_gradio(audio_file, system_prompt_input):
364
+
365
+
366
+ ai_conversation = AsyncAIConversation()
367
+
368
+ # Initialize all models
369
+ await ai_conversation.initialize_models()
370
+
371
  """Processes audio file and system prompt for Gradio interface."""
372
  if audio_file is None:
373
  return "Please upload an audio file.", "", "", None