jsbeaudry commited on
Commit
6dff5db
·
verified ·
1 Parent(s): e837bae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -292,13 +292,13 @@ class AsyncAIConversation:
292
  return results
293
 
294
  # Usage example and demo functions
295
- # async def demo_conversation():
296
- # """Demonstration of the conversation system"""
297
- # # Initialize the conversation system
298
- # ai_conversation = AsyncAIConversation()
299
 
300
- # # Initialize all models
301
- # await ai_conversation.initialize_models()
302
 
303
  # # Example usage
304
  # audio_file = "/content/Recording 2.wav" # Replace with your audio file path
@@ -358,8 +358,7 @@ class AsyncAIConversation:
358
 
359
 
360
 
361
- ai_conversation = AsyncAIConversation()
362
- await ai_conversation.initialize_models()
363
 
364
  # Create the async function wrapper for Gradio
365
  async def process_audio_gradio(audio_file, system_prompt_input):
 
292
  return results
293
 
294
  # Usage example and demo functions
295
+ async def demo_conversation():
296
+ """Demonstration of the conversation system"""
297
+ # Initialize the conversation system
298
+ ai_conversation = AsyncAIConversation()
299
 
300
+ # Initialize all models
301
+ await ai_conversation.initialize_models()
302
 
303
  # # Example usage
304
  # audio_file = "/content/Recording 2.wav" # Replace with your audio file path
 
358
 
359
 
360
 
361
+ demo_conversation()
 
362
 
363
  # Create the async function wrapper for Gradio
364
  async def process_audio_gradio(audio_file, system_prompt_input):