Spaces:
				
			
			
	
			
			
		Build error
		
	
	
	
			
			
	
	
	
	
		
		
		Build error
		
	File size: 327 Bytes
			
			dab2de2  | 
								1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  | 
								"""Convert file to text."""
from radiobee.process_upload import process_upload
def file2text(file1):
    """Convert file to text."""
    try:
        filename1 = file1.name
    except AttributeError:
        filename1 = ""
    if filename1:
        text1 = process_upload(file1)
    else:
        text1 = ""
    return text1
 |