Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,10 +24,10 @@ def run_katana(url, crawl_type):
|
|
24 |
return result.stdout, buffer
|
25 |
except Exception as e:
|
26 |
return str(e), None
|
27 |
-
```
|
28 |
|
29 |
-
|
30 |
-
|
|
|
31 |
def process_and_display(url, crawl_type):
|
32 |
result, file_data = run_katana(url, crawl_type)
|
33 |
if file_data:
|
@@ -40,7 +40,7 @@ def process_and_display(url, crawl_type):
|
|
40 |
return result, temp_file.name
|
41 |
else:
|
42 |
return result, None
|
43 |
-
|
44 |
|
45 |
#Update the Gradio interface to include the dropdown menu
|
46 |
|
|
|
24 |
return result.stdout, buffer
|
25 |
except Exception as e:
|
26 |
return str(e), None
|
|
|
27 |
|
28 |
+
|
29 |
+
# Modify the process_and_display function to include the crawl_type parameter
|
30 |
+
|
31 |
def process_and_display(url, crawl_type):
|
32 |
result, file_data = run_katana(url, crawl_type)
|
33 |
if file_data:
|
|
|
40 |
return result, temp_file.name
|
41 |
else:
|
42 |
return result, None
|
43 |
+
|
44 |
|
45 |
#Update the Gradio interface to include the dropdown menu
|
46 |
|