Omnibus commited on
Commit
ab1e248
·
verified ·
1 Parent(s): a39eb51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -13
app.py CHANGED
@@ -464,18 +464,7 @@ def summarize(inp,history,report_check,chart_check,data=None,files=None,director
464
 
465
  json_start = sort_fn(out)
466
  json_out = find_keyword_fn(c,inp,json_start)
467
- #json_out = compress_data(c,inp,out)
468
- #json_box.append(json_out)
469
-
470
- #json_object = json.dumps(eval(json_out), indent=4)
471
- #json_box.append(json_out)
472
  print(f'JSON_BOX:: {json_out}')
473
- # Writing to sample.json
474
- #with open("tmp.json", "w") as outfile:
475
- # outfile.write(json_object)
476
- #outfile.close()
477
-
478
- #json_box.append(json_out)
479
  out = str(json_out)
480
  if report_check:
481
  rl = len(out)
@@ -517,8 +506,8 @@ with gr.Blocks() as app:
517
  with gr.Column(scale=3):
518
  prompt=gr.Textbox(label = "Instructions (optional)")
519
  with gr.Column(scale=1):
520
- report_check=gr.Checkbox(label="Return Report", value=True)
521
- chart_check=gr.Checkbox(label="Return Chart", value=True)
522
  button=gr.Button()
523
 
524
  #models_dd=gr.Dropdown(choices=[m for m in return_list],interactive=True)
 
464
 
465
  json_start = sort_fn(out)
466
  json_out = find_keyword_fn(c,inp,json_start)
 
 
 
 
 
467
  print(f'JSON_BOX:: {json_out}')
 
 
 
 
 
 
468
  out = str(json_out)
469
  if report_check:
470
  rl = len(out)
 
506
  with gr.Column(scale=3):
507
  prompt=gr.Textbox(label = "Instructions (optional)")
508
  with gr.Column(scale=1):
509
+ report_check=gr.Checkbox(label="Return Report", value=False)
510
+ chart_check=gr.Checkbox(label="Return Chart", value=False)
511
  button=gr.Button()
512
 
513
  #models_dd=gr.Dropdown(choices=[m for m in return_list],interactive=True)