baconnier commited on
Commit
9867909
1 Parent(s): c2dc7f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -860,6 +860,9 @@ class GradioInterface:
860
  def launch(self):
861
  self.interface.launch()
862
 
 
 
 
863
  # Main code to run the application
864
  if __name__ == '__main__':
865
  api_token = os.getenv('HF_API_TOKEN')
 
860
  def launch(self):
861
  self.interface.launch()
862
 
863
+ def launch(self, share=False):
864
+ self.interface.launch(share=share, server_name="0.0.0.0", server_port=7860)
865
+
866
  # Main code to run the application
867
  if __name__ == '__main__':
868
  api_token = os.getenv('HF_API_TOKEN')