Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -223,6 +223,7 @@ def generate_response_with_visualization(
|
|
| 223 |
|
| 224 |
# Process each step
|
| 225 |
for i in range(steps_per_block):
|
|
|
|
| 226 |
# Get all mask positions in the current sequence
|
| 227 |
mask_index = x == MASK_ID
|
| 228 |
|
|
@@ -392,8 +393,8 @@ with gr.Blocks() as demo:
|
|
| 392 |
label="Number of random words")
|
| 393 |
|
| 394 |
len_gen_text = gr.Slider(minimum=10,
|
| 395 |
-
maximum=
|
| 396 |
-
value=
|
| 397 |
step=1,
|
| 398 |
label="Length of generated text")
|
| 399 |
|
|
@@ -420,7 +421,7 @@ with gr.Blocks() as demo:
|
|
| 420 |
)
|
| 421 |
with gr.Row():
|
| 422 |
block_length = gr.Slider(
|
| 423 |
-
minimum=8, maximum=64, value=
|
| 424 |
)
|
| 425 |
remasking_strategy = gr.Radio(
|
| 426 |
choices=["low_confidence", "random"],
|
|
|
|
| 223 |
|
| 224 |
# Process each step
|
| 225 |
for i in range(steps_per_block):
|
| 226 |
+
print(f"Processing step{i}") ## for logging and debugging...
|
| 227 |
# Get all mask positions in the current sequence
|
| 228 |
mask_index = x == MASK_ID
|
| 229 |
|
|
|
|
| 393 |
label="Number of random words")
|
| 394 |
|
| 395 |
len_gen_text = gr.Slider(minimum=10,
|
| 396 |
+
maximum=128,
|
| 397 |
+
value=64,
|
| 398 |
step=1,
|
| 399 |
label="Length of generated text")
|
| 400 |
|
|
|
|
| 421 |
)
|
| 422 |
with gr.Row():
|
| 423 |
block_length = gr.Slider(
|
| 424 |
+
minimum=8, maximum=64, value=32, step=8, label="Block Length"
|
| 425 |
)
|
| 426 |
remasking_strategy = gr.Radio(
|
| 427 |
choices=["low_confidence", "random"],
|