ford442 commited on
Commit
a2f4706
·
verified ·
1 Parent(s): 6dcf7b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -136,5 +136,6 @@ with gr.Blocks(title="Whisper, Vicuna, & TTS Demo") as demo: # Updated title
136
  outputs=[transcription_output, transcription_state, audio_output]
137
  )
138
 
139
- app.run(debug=True, port=5000) # Run Flask app
140
- demo.launch(share=False)
 
 
136
  outputs=[transcription_output, transcription_state, audio_output]
137
  )
138
 
139
+ if __name__ == '__main__':
140
+ app.run(debug=True, port=5000) # Run Flask app
141
+ demo.launch(share=False)