Priti0210 commited on
Commit
7284d62
·
1 Parent(s): a50a59e

Clean rebuild for Gradio compatibility

Browse files
Files changed (2) hide show
  1. app.py +2 -7
  2. requirements.txt +4 -4
app.py CHANGED
@@ -272,10 +272,5 @@ def main_interface():
272
 
273
  # Launch the Gradio interface
274
  if __name__ == "__main__":
275
- # Check if running in Hugging Face Spaces
276
- if "HF_SPACE" in os.environ:
277
- interface = main_interface()
278
- # In Spaces, we don't call launch() as the platform handles the server
279
- else:
280
- interface = main_interface()
281
- interface.launch(share=False) # Set share=True for local public URL
 
272
 
273
  # Launch the Gradio interface
274
  if __name__ == "__main__":
275
+ interface = main_interface()
276
+ interface.launch(server_name="0.0.0.0", server_port=7860)
 
 
 
 
 
requirements.txt CHANGED
@@ -1,8 +1,8 @@
1
- pandas
 
 
2
  nltk
 
3
  scikit-learn
4
  sentence-transformers
5
  graphviz
6
- gradio==4.44.1
7
- fastapi>=0.103.0
8
- uvicorn>=0.22.0
 
1
+ gradio==4.43.0
2
+ fastapi==0.103.0
3
+ uvicorn==0.22.0
4
  nltk
5
+ pandas
6
  scikit-learn
7
  sentence-transformers
8
  graphviz