Spaces:
Build error
Build error
fix
Browse files- app.py +4 -1
- packages.txt +2 -0
app.py
CHANGED
|
@@ -96,6 +96,8 @@ def run_job_search():
|
|
| 96 |
chrome_options.add_argument("--log-level=3")
|
| 97 |
chrome_options.add_experimental_option('excludeSwitches', ['enable-logging'])
|
| 98 |
chrome_options.page_load_strategy = 'eager'
|
|
|
|
|
|
|
| 99 |
|
| 100 |
results = []
|
| 101 |
with ThreadPoolExecutor(max_workers=MAX_WORKERS) as executor:
|
|
@@ -127,4 +129,5 @@ demo = gr.Interface(
|
|
| 127 |
)
|
| 128 |
|
| 129 |
if __name__ == "__main__":
|
| 130 |
-
|
|
|
|
|
|
| 96 |
chrome_options.add_argument("--log-level=3")
|
| 97 |
chrome_options.add_experimental_option('excludeSwitches', ['enable-logging'])
|
| 98 |
chrome_options.page_load_strategy = 'eager'
|
| 99 |
+
# Set the binary location for Chromium; adjust if needed.
|
| 100 |
+
chrome_options.binary_location = "/usr/bin/chromium-browser"
|
| 101 |
|
| 102 |
results = []
|
| 103 |
with ThreadPoolExecutor(max_workers=MAX_WORKERS) as executor:
|
|
|
|
| 129 |
)
|
| 130 |
|
| 131 |
if __name__ == "__main__":
|
| 132 |
+
# To create a public link, set share=True.
|
| 133 |
+
demo.launch(share=True)
|
packages.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
chromium
|
| 2 |
+
chromium-driver
|