Spaces:
Configuration error
Configuration error
Upload app.py
Browse files463 unmodified lines464465466467468469470471472463 unmodified linesif __name__ == "__main__":# Check if running on Hugging Face Spacesif "SPACE_ID" in os.environ:# Running on HF Spaces - don't specify any server parameters# Let HF Spaces handle the networking configurationdemo.launch()else:# Running locally - use custom server settings and sharedemo.launch(463 unmodified lines464465466467468469470471472473474475476463 unmodified linesif __name__ == "__main__":# Check if running on Hugging Face Spacesif "SPACE_ID" in os.environ:# Running on HF Spaces - use minimal configurationdemo.launch(server_port=7860, # Match the port HF Spaces expectsshare=False, # Explicitly disable sharingdebug=False, # Disable debug mode in productionshow_error=True # Show detailed errors if they occur)else:# Running locally - use custom server settings and sharedemo.launch(
app.py+7-3