PECCAVI-TEXT commited on
Commit
193f45b
·
verified ·
1 Parent(s): d57a0cf

Update UI/gradio.py

Browse files
Files changed (1) hide show
  1. UI/gradio.py +3 -3
UI/gradio.py CHANGED
@@ -295,12 +295,12 @@ class WatermarkerInterface:
295
 
296
  print("Reparaphrased indices:", self.reparaphrased_indices)
297
 
298
- while len(html_outputs) < 120:
299
  html_outputs.append("")
300
 
301
  execution_time = f"<div class='execution-time'>Step 4 completed in {time.time() - start_time:.2f} seconds</div>"
302
 
303
- return html_outputs[:120] + [execution_time]
304
 
305
  def create_gradio_interface(config):
306
  """Creates the Gradio interface with the updated pipeline"""
@@ -530,7 +530,7 @@ def create_gradio_interface(config):
530
  gr.Markdown("### Reparaphrased Sentences")
531
  reparaphrased_sentences_tabs = []
532
  with gr.Tabs(elem_id="reparaphrased-tabs") as reparaphrased_tabs:
533
- for i in range(120):
534
  with gr.TabItem(f"Reparaphrased Batch {i+1}"):
535
  reparaphrased_sent_html = gr.HTML()
536
  reparaphrased_sentences_tabs.append(reparaphrased_sent_html)
 
295
 
296
  print("Reparaphrased indices:", self.reparaphrased_indices)
297
 
298
+ while len(html_outputs) < 150:
299
  html_outputs.append("")
300
 
301
  execution_time = f"<div class='execution-time'>Step 4 completed in {time.time() - start_time:.2f} seconds</div>"
302
 
303
+ return html_outputs[:150] + [execution_time]
304
 
305
  def create_gradio_interface(config):
306
  """Creates the Gradio interface with the updated pipeline"""
 
530
  gr.Markdown("### Reparaphrased Sentences")
531
  reparaphrased_sentences_tabs = []
532
  with gr.Tabs(elem_id="reparaphrased-tabs") as reparaphrased_tabs:
533
+ for i in range(150):
534
  with gr.TabItem(f"Reparaphrased Batch {i+1}"):
535
  reparaphrased_sent_html = gr.HTML()
536
  reparaphrased_sentences_tabs.append(reparaphrased_sent_html)