Spaces:
Running
Running
Trisha Tomy
commited on
Commit
·
7e39dbf
1
Parent(s):
7263162
debug stmts+env timout ++
Browse files
app.py
CHANGED
@@ -32,7 +32,9 @@ async def initialize_runner():
|
|
32 |
"homepage": "https://dwd000006jia1mae.lightning.force.com/lightning/setup/AccountForecastSettings/home",
|
33 |
"headless": True, # Keep headless for production environments
|
34 |
"launch_args": ["--no-sandbox", "--disable-setuid-sandbox"] ,
|
35 |
-
|
|
|
|
|
36 |
"screenshot_delay": 3.0, # Increased delay for full page render before screenshot
|
37 |
"include_html": True, # Include full HTML for richer observations
|
38 |
"include_poi_text": True, # Keep including points of interest text
|
@@ -50,6 +52,13 @@ async def initialize_runner():
|
|
50 |
}
|
51 |
}
|
52 |
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
_runner = Runner(config=config)
|
54 |
logger.info("Proxy-lite Runner initialized successfully.")
|
55 |
return _runner
|
@@ -124,4 +133,4 @@ if __name__ == '__main__':
|
|
124 |
logger.error("HF_API_TOKEN environment variable is not set. Please set it for local testing.")
|
125 |
exit(1)
|
126 |
logger.info("Starting Flask development server on 0.0.0.0:7860...")
|
127 |
-
app.run(host='0.0.0.0', port=7860, debug=True)
|
|
|
32 |
"homepage": "https://dwd000006jia1mae.lightning.force.com/lightning/setup/AccountForecastSettings/home",
|
33 |
"headless": True, # Keep headless for production environments
|
34 |
"launch_args": ["--no-sandbox", "--disable-setuid-sandbox"] ,
|
35 |
+
# --- CHANGE MADE HERE ---
|
36 |
+
"environment_timeout": 1800.0, # Increased from default 30 seconds, and your intended 120 to 1800
|
37 |
+
# --- END CHANGE ---
|
38 |
"screenshot_delay": 3.0, # Increased delay for full page render before screenshot
|
39 |
"include_html": True, # Include full HTML for richer observations
|
40 |
"include_poi_text": True, # Keep including points of interest text
|
|
|
52 |
}
|
53 |
}
|
54 |
})
|
55 |
+
|
56 |
+
# --- ADDED DEBUG LOGGING HERE ---
|
57 |
+
logger.info(f"DEBUG: app.py - Initializing Runner with environment_timeout: {config.environment_timeout} seconds")
|
58 |
+
logger.info(f"DEBUG: app.py - Full config used: {config.model_dump_json(indent=2)}") # For Pydantic v2
|
59 |
+
# If you are using Pydantic v1, use: logger.info(f"DEBUG: app.py - Full config used: {config.json(indent=2)}")
|
60 |
+
# --- END ADDED DEBUG LOGGING ---
|
61 |
+
|
62 |
_runner = Runner(config=config)
|
63 |
logger.info("Proxy-lite Runner initialized successfully.")
|
64 |
return _runner
|
|
|
133 |
logger.error("HF_API_TOKEN environment variable is not set. Please set it for local testing.")
|
134 |
exit(1)
|
135 |
logger.info("Starting Flask development server on 0.0.0.0:7860...")
|
136 |
+
app.run(host='0.0.0.0', port=7860, debug=True)
|