Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -255,7 +255,7 @@ def process_and_query(text, image, audio): | |
| 255 | 
             
                try:
         | 
| 256 | 
             
                    # If an image is provided, process it with OpenAI and use the response as the text query for Vectara
         | 
| 257 | 
             
                    if image is not None:
         | 
| 258 | 
            -
                        text =  | 
| 259 |  | 
| 260 | 
             
                    if audio is not None:
         | 
| 261 | 
             
                        # audio = audio[0].numpy()
         | 
|  | |
| 255 | 
             
                try:
         | 
| 256 | 
             
                    # If an image is provided, process it with OpenAI and use the response as the text query for Vectara
         | 
| 257 | 
             
                    if image is not None:
         | 
| 258 | 
            +
                        text = process_image(image)
         | 
| 259 |  | 
| 260 | 
             
                    if audio is not None:
         | 
| 261 | 
             
                        # audio = audio[0].numpy()
         | 
 
			
