Enable API access and CORS for external requests
Browse files
app.py
CHANGED
@@ -58,5 +58,8 @@ if __name__ == "__main__":
|
|
58 |
root_path="",
|
59 |
show_api=True,
|
60 |
allowed_paths=None, # Allow all paths
|
61 |
-
quiet=True # Reduce logging noise
|
|
|
|
|
|
|
62 |
)
|
|
|
58 |
root_path="",
|
59 |
show_api=True,
|
60 |
allowed_paths=None, # Allow all paths
|
61 |
+
quiet=True, # Reduce logging noise
|
62 |
+
enable_queue=True,
|
63 |
+
api_open=True, # Explicitly enable API access
|
64 |
+
cors_allowed_origins="*" # Allow cross-origin requests
|
65 |
)
|