Pial2233's picture
Commit with fix
e089c13 verified
raw
history blame
663 Bytes
"""
Hugging Face Space entry point for Legal Deed Reviewer.
This file is optimized for deployment on Hugging Face Spaces.
"""
import sys
import os
# Ensure the current directory is in the path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
# Import the main Gradio app
from web_app import app as gradio_app
# Launch for Hugging Face Spaces
if __name__ == "__main__":
# Hugging Face Spaces will handle port assignment
gradio_app.launch(
server_name="0.0.0.0",
server_port=7860, # Default Gradio port for Spaces
share=False, # No need to share on Spaces
show_error=True
)