Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -9,12 +9,14 @@ def create_interface(): 
     | 
|
| 9 | 
         
             
                with gr.Blocks() as iface:
         
     | 
| 10 | 
         
             
                    gr.Markdown("# Personality Analysis Classification")
         
     | 
| 11 | 
         
             
                    gr.Markdown("Upload a Video, TXT, or PDF file or use the example video.")
         
     | 
| 12 | 
         
            -
             
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 13 | 
         
             
                    with gr.Row():
         
     | 
| 14 | 
         
             
                        input_file = gr.File(label="Upload File (TXT, PDF, or Video)")
         
     | 
| 15 | 
         
            -
                         
     | 
| 16 | 
         
            -
             
     | 
| 17 | 
         
            -
                        example_video = gr.Video(value=example_video_path, label="Example Video Preview")
         
     | 
| 18 | 
         | 
| 19 | 
         
             
                    with gr.Column():
         
     | 
| 20 | 
         
             
                        progress = gr.Progress()
         
     | 
| 
         | 
|
| 9 | 
         
             
                with gr.Blocks() as iface:
         
     | 
| 10 | 
         
             
                    gr.Markdown("# Personality Analysis Classification")
         
     | 
| 11 | 
         
             
                    gr.Markdown("Upload a Video, TXT, or PDF file or use the example video.")
         
     | 
| 12 | 
         
            +
                
         
     | 
| 13 | 
         
            +
                    # Load the video directly when creating the interface
         
     | 
| 14 | 
         
            +
                    example_video = gr.Video(value=example_video_path, label="Example Video Preview")
         
     | 
| 15 | 
         
            +
                
         
     | 
| 16 | 
         
             
                    with gr.Row():
         
     | 
| 17 | 
         
             
                        input_file = gr.File(label="Upload File (TXT, PDF, or Video)")
         
     | 
| 18 | 
         
            +
                        with gr.Column():
         
     | 
| 19 | 
         
            +
                            example_button = gr.Button("Use Example Video")
         
     | 
| 
         | 
|
| 20 | 
         | 
| 21 | 
         
             
                    with gr.Column():
         
     | 
| 22 | 
         
             
                        progress = gr.Progress()
         
     |