Girinath11 commited on
Commit
7e83ee5
·
verified ·
1 Parent(s): b09e3a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,11 +1,9 @@
1
  import subprocess
2
  import sys
3
- import importlib
4
  import os
5
  import json
6
  from io import BytesIO
7
  import base64
8
- import time
9
  from datetime import datetime
10
  import warnings
11
  warnings.filterwarnings('ignore')
@@ -1238,9 +1236,10 @@ class DataSciencePipelineUI:
1238
  outputs=[download_button]
1239
  )
1240
 
1241
- demo.launch(share=True)
1242
 
1243
  # Example usage
1244
  if __name__ == "__main__":
1245
  pipeline_ui = DataSciencePipelineUI()
1246
- pipeline_ui.launch(share=True)
 
 
1
  import subprocess
2
  import sys
 
3
  import os
4
  import json
5
  from io import BytesIO
6
  import base64
 
7
  from datetime import datetime
8
  import warnings
9
  warnings.filterwarnings('ignore')
 
1236
  outputs=[download_button]
1237
  )
1238
 
1239
+ return demo # Return the demo object for Hugging Face Spaces
1240
 
1241
  # Example usage
1242
  if __name__ == "__main__":
1243
  pipeline_ui = DataSciencePipelineUI()
1244
+ demo = pipeline_ui.launch()
1245
+ demo.launch(share=True) # Launch the app for Hugging Face Spaces