Spaces:
Sleeping
Sleeping
fix: Uncomment server_port in application configuration to enable server functionality
Browse files- app.py +1 -1
- utils/config.py +1 -1
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def main():
|
|
| 25 |
|
| 26 |
# Launch with appropriate settings
|
| 27 |
interface.launch(
|
| 28 |
-
server_port=app_config["server_port"],
|
| 29 |
debug=app_config["debug"],
|
| 30 |
quiet=app_config["quiet"],
|
| 31 |
max_file_size=app_config["max_file_size"]
|
|
|
|
| 25 |
|
| 26 |
# Launch with appropriate settings
|
| 27 |
interface.launch(
|
| 28 |
+
# server_port=app_config["server_port"],
|
| 29 |
debug=app_config["debug"],
|
| 30 |
quiet=app_config["quiet"],
|
| 31 |
max_file_size=app_config["max_file_size"]
|
utils/config.py
CHANGED
|
@@ -30,7 +30,7 @@ def get_app_config() -> Dict[str, Any]:
|
|
| 30 |
Dict[str, Any]: Application configuration settings
|
| 31 |
"""
|
| 32 |
return {
|
| 33 |
-
|
| 34 |
"debug": True, # Enable debug mode for development
|
| 35 |
"quiet": False, # Show startup messages
|
| 36 |
"max_file_size": "10mb" # Limit PDF file size
|
|
|
|
| 30 |
Dict[str, Any]: Application configuration settings
|
| 31 |
"""
|
| 32 |
return {
|
| 33 |
+
"server_port": 7862, # Use a different port to avoid conflicts
|
| 34 |
"debug": True, # Enable debug mode for development
|
| 35 |
"quiet": False, # Show startup messages
|
| 36 |
"max_file_size": "10mb" # Limit PDF file size
|