Update app.py
Browse files
app.py
CHANGED
|
@@ -222,13 +222,14 @@ with gr.Blocks() as block:
|
|
| 222 |
# Scrape Content
|
| 223 |
Upload a spreadsheet with descriptions of website content
|
| 224 |
''')
|
|
|
|
| 225 |
csv_file = gr.File(label='Input CSV File (must be CSV File)')
|
| 226 |
social_media = gr.Radio(choices=['LinkedIn', 'Instagram'], label='Which Social Media?', info = 'Which Social Media do you want to scrape from?')
|
| 227 |
con_gen_btn = gr.Button('Scrape')
|
| 228 |
status = gr.Textbox(label='Completion Status')
|
| 229 |
download_btn = gr.DownloadButton(label='Download Content', visible=False)
|
| 230 |
|
| 231 |
-
con_gen_btn.click(get_scrape_data, inputs=[csv_file, social_media], outputs=[status, download_btn])
|
| 232 |
|
| 233 |
|
| 234 |
block.queue(default_concurrency_limit=5)
|
|
|
|
| 222 |
# Scrape Content
|
| 223 |
Upload a spreadsheet with descriptions of website content
|
| 224 |
''')
|
| 225 |
+
password = gr.Textbox(label='Enter Password')
|
| 226 |
csv_file = gr.File(label='Input CSV File (must be CSV File)')
|
| 227 |
social_media = gr.Radio(choices=['LinkedIn', 'Instagram'], label='Which Social Media?', info = 'Which Social Media do you want to scrape from?')
|
| 228 |
con_gen_btn = gr.Button('Scrape')
|
| 229 |
status = gr.Textbox(label='Completion Status')
|
| 230 |
download_btn = gr.DownloadButton(label='Download Content', visible=False)
|
| 231 |
|
| 232 |
+
con_gen_btn.click(get_scrape_data, inputs=[csv_file, social_media, password], outputs=[status, download_btn])
|
| 233 |
|
| 234 |
|
| 235 |
block.queue(default_concurrency_limit=5)
|