Spaces:
Runtime error
Runtime error
Commit Β·
866ec2a
1
Parent(s): 20e7644
Update app.py
Browse files
app.py
CHANGED
|
@@ -250,35 +250,7 @@ def run_multi_phrase_scan(my_phrase, num_phrases, addresses_file, phrase_mode,
|
|
| 250 |
|
| 251 |
|
| 252 |
# ============================================================
|
| 253 |
-
# Build UI
|
| 254 |
-
# ============================================================
|
| 255 |
-
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")
|
| 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")
|
|
@@ -323,7 +295,6 @@ with gr.Blocks(title="Phrase Scanner") as demo:
|
|
| 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,
|
|
|
|
| 250 |
|
| 251 |
|
| 252 |
# ============================================================
|
| 253 |
+
# Build UI (Cleaned up)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 254 |
# ============================================================
|
| 255 |
with gr.Blocks(title="Phrase Scanner") as demo:
|
| 256 |
gr.Markdown("# π Phrase Scanner")
|
|
|
|
| 295 |
|
| 296 |
with gr.Column(scale=2):
|
| 297 |
gr.Markdown("### Output")
|
|
|
|
| 298 |
log_output = gr.Textbox(
|
| 299 |
label="Scan Log",
|
| 300 |
lines=20,
|