Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,6 +33,16 @@ def gradio_interface(query, locations, time_filter, country):
|
|
| 33 |
df, message = scrape_jobs_func(query, locations, time_filter, country)
|
| 34 |
return df, message
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
# App Layout
|
| 37 |
iface = gr.Interface(
|
| 38 |
fn=gradio_interface,
|
|
@@ -53,11 +63,12 @@ iface = gr.Interface(
|
|
| 53 |
)
|
| 54 |
],
|
| 55 |
outputs=[
|
| 56 |
-
gr.Dataframe(label="Job Results", headers=['Date','Company', 'ApplyLink'], interactive=True),
|
| 57 |
gr.Textbox(label="Message"),
|
| 58 |
],
|
| 59 |
#title="Job Scraper",
|
| 60 |
description="Enter a job query and locations to scrape job postings and display the results in a table.",
|
|
|
|
| 61 |
)
|
| 62 |
|
| 63 |
if __name__ == "__main__":
|
|
|
|
| 33 |
df, message = scrape_jobs_func(query, locations, time_filter, country)
|
| 34 |
return df, message
|
| 35 |
|
| 36 |
+
custom_css = """
|
| 37 |
+
.big-table .wrap.svelte-1ipelgc {
|
| 38 |
+
max-width: 100% !important;
|
| 39 |
+
overflow-x: auto;
|
| 40 |
+
}
|
| 41 |
+
.big-table table {
|
| 42 |
+
min-width: 1000px; /* Adjust width as needed */
|
| 43 |
+
}
|
| 44 |
+
"""
|
| 45 |
+
|
| 46 |
# App Layout
|
| 47 |
iface = gr.Interface(
|
| 48 |
fn=gradio_interface,
|
|
|
|
| 63 |
)
|
| 64 |
],
|
| 65 |
outputs=[
|
| 66 |
+
gr.Dataframe(label="Job Results", headers=['Date','Company', 'ApplyLink'], interactive=True, elem_classes="big-table"),
|
| 67 |
gr.Textbox(label="Message"),
|
| 68 |
],
|
| 69 |
#title="Job Scraper",
|
| 70 |
description="Enter a job query and locations to scrape job postings and display the results in a table.",
|
| 71 |
+
css=custom_css
|
| 72 |
)
|
| 73 |
|
| 74 |
if __name__ == "__main__":
|