Spaces:
Running
Running
Trisha Tomy
commited on
Commit
·
c0d96d8
1
Parent(s):
d116fe5
app.py ports+headless
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ async def initialize_runner_with_cookies(cookies: list, target_url: str):
|
|
89 |
"environment": {
|
90 |
"name": "webbrowser",
|
91 |
"homepage": "about:blank", # Safe startup, we'll open new tab programmatically
|
92 |
-
"headless":
|
93 |
"launch_args": ["--no-sandbox", "--disable-setuid-sandbox"],
|
94 |
"screenshot_delay": 0.5,
|
95 |
"include_html": True,
|
@@ -318,5 +318,5 @@ def health_check():
|
|
318 |
if __name__ == '__main__':
|
319 |
if not os.environ.get("HF_API_TOKEN"):
|
320 |
logger.error("HF_API_TOKEN environment variable is not set. Please set it for local testing.")
|
321 |
-
logger.info("Starting Flask development server on 0.0.0.0:
|
322 |
-
app.run(host='0.0.0.0', port=
|
|
|
89 |
"environment": {
|
90 |
"name": "webbrowser",
|
91 |
"homepage": "about:blank", # Safe startup, we'll open new tab programmatically
|
92 |
+
"headless": True,
|
93 |
"launch_args": ["--no-sandbox", "--disable-setuid-sandbox"],
|
94 |
"screenshot_delay": 0.5,
|
95 |
"include_html": True,
|
|
|
318 |
if __name__ == '__main__':
|
319 |
if not os.environ.get("HF_API_TOKEN"):
|
320 |
logger.error("HF_API_TOKEN environment variable is not set. Please set it for local testing.")
|
321 |
+
logger.info("Starting Flask development server on 0.0.0.0:7860...")
|
322 |
+
app.run(host='0.0.0.0', port=7860, debug=True)
|