Spaces:
Runtime error
Runtime error
Commit Β·
20e7644
1
Parent(s): eda03d3
Update app.py
Browse files
app.py
CHANGED
|
@@ -256,6 +256,34 @@ with gr.Blocks(title="Phrase Scanner") as demo:
|
|
| 256 |
gr.Markdown("# π Phrase Scanner")
|
| 257 |
gr.Markdown("Apni phrase ya random phrases check karein, index range ke saath.")
|
| 258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
with gr.Row():
|
| 260 |
with gr.Column(scale=1):
|
| 261 |
gr.Markdown("### Settings")
|
|
@@ -295,13 +323,13 @@ with gr.Blocks(title="Phrase Scanner") as demo:
|
|
| 295 |
|
| 296 |
with gr.Column(scale=2):
|
| 297 |
gr.Markdown("### Output")
|
|
|
|
| 298 |
log_output = gr.Textbox(
|
| 299 |
label="Scan Log",
|
| 300 |
lines=20,
|
| 301 |
max_lines=30,
|
| 302 |
interactive=False,
|
| 303 |
autoscroll=True,
|
| 304 |
-
show_copy_button=True,
|
| 305 |
)
|
| 306 |
matches_output = gr.Textbox(
|
| 307 |
label="Matches",
|
|
@@ -309,7 +337,6 @@ with gr.Blocks(title="Phrase Scanner") as demo:
|
|
| 309 |
max_lines=20,
|
| 310 |
interactive=False,
|
| 311 |
autoscroll=True,
|
| 312 |
-
show_copy_button=True,
|
| 313 |
)
|
| 314 |
|
| 315 |
run_btn.click(
|
|
|
|
| 256 |
gr.Markdown("# π Phrase Scanner")
|
| 257 |
gr.Markdown("Apni phrase ya random phrases check karein, index range ke saath.")
|
| 258 |
|
| 259 |
+
with gr.Row():
|
| 260 |
+
with gr.Column(scale=1):
|
| 261 |
+
gr.Markdown("### Settings")
|
| 262 |
+
my_phrase = gr.Textbox(
|
| 263 |
+
label="π Apni Phrase (optional)",
|
| 264 |
+
value="lesson cushion crane affair federal decline limb spend reunion chief cart zebra",
|
| 265 |
+
lines=2,
|
| 266 |
+
)
|
| 267 |
+
num_phrases = gr.Number(
|
| 268 |
+
label="Kitni Random Phrases Check Karein?",
|
| 269 |
+
value=10, precision=0, minimum=0,
|
| 270 |
+
)
|
| 271 |
+
addresses_file = gr.Textbox(
|
| 272 |
+
label="Addresses File",
|
| 273 |
+
value="12730802_addresses.csv",
|
| 274 |
+
)
|
| 275 |
+
phrase_mode = gr.Radio(
|
| 276 |
+
choices=["replace", "order", "subset"],
|
| 277 |
+
value="replace",
|
| 278 |
+
label="Phrase Mode",
|
| 279 |
+
)
|
| 280 |
+
# ============================================================
|
| 281 |
+
# Build UI
|
| 282 |
+
# ============================================================
|
| 283 |
+
with gr.Blocks(title="Phrase Scanner") as demo:
|
| 284 |
+
gr.Markdown("# π Phrase Scanner")
|
| 285 |
+
gr.Markdown("Apni phrase ya random phrases check karein, index range ke saath.")
|
| 286 |
+
|
| 287 |
with gr.Row():
|
| 288 |
with gr.Column(scale=1):
|
| 289 |
gr.Markdown("### Settings")
|
|
|
|
| 323 |
|
| 324 |
with gr.Column(scale=2):
|
| 325 |
gr.Markdown("### Output")
|
| 326 |
+
# β
show_copy_button HATA DIYA
|
| 327 |
log_output = gr.Textbox(
|
| 328 |
label="Scan Log",
|
| 329 |
lines=20,
|
| 330 |
max_lines=30,
|
| 331 |
interactive=False,
|
| 332 |
autoscroll=True,
|
|
|
|
| 333 |
)
|
| 334 |
matches_output = gr.Textbox(
|
| 335 |
label="Matches",
|
|
|
|
| 337 |
max_lines=20,
|
| 338 |
interactive=False,
|
| 339 |
autoscroll=True,
|
|
|
|
| 340 |
)
|
| 341 |
|
| 342 |
run_btn.click(
|