Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def check_proxies(proxy_list):
|
|
| 52 |
|
| 53 |
# Tạo giao diện Gradio
|
| 54 |
with gr.Blocks(title="Kiểm tra Proxy") as demo:
|
| 55 |
-
gr.Markdown("# Công cụ Kiểm tra Proxy - 11:
|
| 56 |
|
| 57 |
with gr.Row():
|
| 58 |
with gr.Column():
|
|
@@ -81,13 +81,12 @@ with gr.Blocks(title="Kiểm tra Proxy") as demo:
|
|
| 81 |
check_button.click(
|
| 82 |
fn=update_table,
|
| 83 |
inputs=proxy_input,
|
| 84 |
-
outputs=output_table
|
| 85 |
-
_js="() => [document.querySelector('textarea').value]"
|
| 86 |
)
|
| 87 |
|
| 88 |
# Cập nhật bộ lọc
|
| 89 |
def update_filter(status, protocols, country):
|
| 90 |
-
return filter_proxies(output_table.value, status, protocols, country)
|
| 91 |
|
| 92 |
status_filter.change(
|
| 93 |
fn=update_filter,
|
|
|
|
| 52 |
|
| 53 |
# Tạo giao diện Gradio
|
| 54 |
with gr.Blocks(title="Kiểm tra Proxy") as demo:
|
| 55 |
+
gr.Markdown("# Công cụ Kiểm tra Proxy - 11:31 AM, 22/08/2025")
|
| 56 |
|
| 57 |
with gr.Row():
|
| 58 |
with gr.Column():
|
|
|
|
| 81 |
check_button.click(
|
| 82 |
fn=update_table,
|
| 83 |
inputs=proxy_input,
|
| 84 |
+
outputs=output_table
|
|
|
|
| 85 |
)
|
| 86 |
|
| 87 |
# Cập nhật bộ lọc
|
| 88 |
def update_filter(status, protocols, country):
|
| 89 |
+
return filter_proxies(output_table.value or [], status, protocols, country)
|
| 90 |
|
| 91 |
status_filter.change(
|
| 92 |
fn=update_filter,
|