Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -38,9 +38,9 @@ def scrape_jobs(query, locations, time_filter):
|
|
38 |
chrome_binary_location=None,
|
39 |
chrome_options=None,
|
40 |
headless=True,
|
41 |
-
max_workers=
|
42 |
-
slow_mo=0.
|
43 |
-
page_load_timeout=
|
44 |
)
|
45 |
|
46 |
scraper.on(Events.DATA, on_data)
|
@@ -96,11 +96,11 @@ iface = gr.Interface(
|
|
96 |
fn=gradio_interface,
|
97 |
inputs=[
|
98 |
gr.Textbox(label="Job Query", placeholder="e.g., Data Scientist", value="Unity developers"),
|
99 |
-
gr.Textbox(label="Locations (comma-separated)", placeholder="e.g., United States, India", value="United States, United Kingdom,
|
100 |
gr.Dropdown(
|
101 |
label="Time Filter",
|
102 |
choices=["From Past Month", "From Last 24 Hours"],
|
103 |
-
value="From
|
104 |
type="value",
|
105 |
),
|
106 |
],
|
|
|
38 |
chrome_binary_location=None,
|
39 |
chrome_options=None,
|
40 |
headless=True,
|
41 |
+
max_workers=5,
|
42 |
+
slow_mo=0.7,
|
43 |
+
page_load_timeout=100,
|
44 |
)
|
45 |
|
46 |
scraper.on(Events.DATA, on_data)
|
|
|
96 |
fn=gradio_interface,
|
97 |
inputs=[
|
98 |
gr.Textbox(label="Job Query", placeholder="e.g., Data Scientist", value="Unity developers"),
|
99 |
+
gr.Textbox(label="Locations (comma-separated)", placeholder="e.g., United States, India", value="United States, United Kingdom, India"),
|
100 |
gr.Dropdown(
|
101 |
label="Time Filter",
|
102 |
choices=["From Past Month", "From Last 24 Hours"],
|
103 |
+
value="From Last 24 Hours", # Default option
|
104 |
type="value",
|
105 |
),
|
106 |
],
|