Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -39,7 +39,7 @@ def transcribe(inputs, previous_transcription): | |
| 39 | 
             
                    return previous_transcription
         | 
| 40 | 
             
                except Exception as e:
         | 
| 41 | 
             
                    print(f"Error during transcription: {e}")
         | 
| 42 | 
            -
                    return previous_transcription   | 
| 43 |  | 
| 44 | 
             
            with gr.Blocks() as demo:
         | 
| 45 | 
             
                with gr.Column():
         | 
| @@ -47,6 +47,6 @@ with gr.Blocks() as demo: | |
| 47 | 
             
                    input_audio_microphone = gr.Audio(streaming=True)
         | 
| 48 | 
             
                    output = gr.Textbox(label="Transcription", value="")
         | 
| 49 |  | 
| 50 | 
            -
                    input_audio_microphone.stream(transcribe, [input_audio_microphone, output], [output], time_limit=45, stream_every= | 
| 51 |  | 
| 52 | 
             
            demo.queue().launch()
         | 
|  | |
| 39 | 
             
                    return previous_transcription
         | 
| 40 | 
             
                except Exception as e:
         | 
| 41 | 
             
                    print(f"Error during transcription: {e}")
         | 
| 42 | 
            +
                    return previous_transcription  
         | 
| 43 |  | 
| 44 | 
             
            with gr.Blocks() as demo:
         | 
| 45 | 
             
                with gr.Column():
         | 
|  | |
| 47 | 
             
                    input_audio_microphone = gr.Audio(streaming=True)
         | 
| 48 | 
             
                    output = gr.Textbox(label="Transcription", value="")
         | 
| 49 |  | 
| 50 | 
            +
                    input_audio_microphone.stream(transcribe, [input_audio_microphone, output], [output], time_limit=45, stream_every=2, concurrency_limit=None)
         | 
| 51 |  | 
| 52 | 
             
            demo.queue().launch()
         | 
 
			
