theQuert commited on
Commit
6eebd5b
1 Parent(s): 95e0eda

Update app

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -113,7 +113,7 @@ def decode(paragraphs_needed):
113
  def split_article(article, trigger):
114
  paragraphs = article.replace("\\c\\c", "\c\c").split("\\\\c\\\\c")
115
  pars = [str(par) + " -- " + str(trigger) for par in paragraphs]
116
- pd.DataFrame({"paragraphs": paragraphs}).to_csv("./util/experiments/check_par.csv")
117
  format_pars = [par for par in paragraphs]
118
  formatted_input = "\n".join(format_pars)
119
  return pars, formatted_input
@@ -340,8 +340,8 @@ with gr.Blocks() as demo:
340
  fn=main,
341
  inputs=[input_1, input_2],
342
  outputs=[output_1, output_2],
343
- cache_examples=True,
344
- run_on_click=True,
345
  ),
346
  com_1_value, com_2_value = "Pls finish article updating, then click the button above", "Pls finish article updating, then click the button above."
347
  with gr.Tab("Compare between versions"):
 
113
  def split_article(article, trigger):
114
  paragraphs = article.replace("\\c\\c", "\c\c").split("\\\\c\\\\c")
115
  pars = [str(par) + " -- " + str(trigger) for par in paragraphs]
116
+ # pd.DataFrame({"paragraphs": paragraphs}).to_csv("./util/experiments/check_par.csv")
117
  format_pars = [par for par in paragraphs]
118
  formatted_input = "\n".join(format_pars)
119
  return pars, formatted_input
 
340
  fn=main,
341
  inputs=[input_1, input_2],
342
  outputs=[output_1, output_2],
343
+ # cache_examples=True,
344
+ # run_on_click=True,
345
  ),
346
  com_1_value, com_2_value = "Pls finish article updating, then click the button above", "Pls finish article updating, then click the button above."
347
  with gr.Tab("Compare between versions"):