Spaces:
Running
Running
Update app.py
Browse files
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')
|