Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Commit 
							
							·
						
						7a8be61
	
1
								Parent(s):
							
							a8d0107
								
Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -32,8 +32,8 @@ def run_therapy_session(group_size, topic): 
     | 
|
| 32 | 
         
             
                participants.append(dr_smith)  # Add the therapist
         
     | 
| 33 | 
         | 
| 34 | 
         
             
                # Define tasks for each participant
         
     | 
| 35 | 
         
            -
                tasks = [Task(description=f'{ 
     | 
| 36 | 
         
            -
                         for  
     | 
| 37 | 
         | 
| 38 | 
         
             
                # Instantiate the crew with a sequential process
         
     | 
| 39 | 
         
             
                therapy_crew = Crew(
         
     | 
| 
         @@ -62,7 +62,7 @@ iface = gr.Interface( 
     | 
|
| 62 | 
         
             
            )
         
     | 
| 63 | 
         | 
| 64 | 
         
             
            # Launch the interface
         
     | 
| 65 | 
         
            -
            iface.launch( 
     | 
| 66 | 
         | 
| 67 | 
         | 
| 68 | 
         | 
| 
         | 
|
| 32 | 
         
             
                participants.append(dr_smith)  # Add the therapist
         
     | 
| 33 | 
         | 
| 34 | 
         
             
                # Define tasks for each participant
         
     | 
| 35 | 
         
            +
                tasks = [Task(description=f'{participant.role} discusses the topic: {topic}', agent=participant)
         
     | 
| 36 | 
         
            +
                         for participant in participants]
         
     | 
| 37 | 
         | 
| 38 | 
         
             
                # Instantiate the crew with a sequential process
         
     | 
| 39 | 
         
             
                therapy_crew = Crew(
         
     | 
| 
         | 
|
| 62 | 
         
             
            )
         
     | 
| 63 | 
         | 
| 64 | 
         
             
            # Launch the interface
         
     | 
| 65 | 
         
            +
            iface.launch()
         
     | 
| 66 | 
         | 
| 67 | 
         | 
| 68 | 
         |