jadehardouin commited on
Commit
3056dd8
1 Parent(s): 4b59495

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -22,8 +22,6 @@ $COT_{1K}$ = Cost per 1000 Output Tokens <br>
22
  $IT$ = Input Tokens <br>
23
  $OT$ = Output Tokens
24
  """
25
- def set_shared_data(page1, page2):
26
- return page1, page2
27
 
28
  def on_use_case_change(use_case):
29
  if use_case == "Summarize":
@@ -68,8 +66,7 @@ with gr.Blocks(theme=style) as demo:
68
  with gr.Accordion("Click here for more information on the computation parameters for your second AI service option", open=False):
69
  page2.render()
70
 
71
- shared_page1, shared_page2 = set_shared_data(page1, page2)
72
- results.set_shared_pages(shared_page1, shared_page2)
73
 
74
  dropdown.change(page1.make_model_visible, inputs=[dropdown, use_case], outputs=page1.get_all_components())
75
  dropdown2.change(page2.make_model_visible, inputs=[dropdown2, use_case], outputs=page2.get_all_components())
 
22
  $IT$ = Input Tokens <br>
23
  $OT$ = Output Tokens
24
  """
 
 
25
 
26
  def on_use_case_change(use_case):
27
  if use_case == "Summarize":
 
66
  with gr.Accordion("Click here for more information on the computation parameters for your second AI service option", open=False):
67
  page2.render()
68
 
69
+ results.set_shared_pages(page1, page2)
 
70
 
71
  dropdown.change(page1.make_model_visible, inputs=[dropdown, use_case], outputs=page1.get_all_components())
72
  dropdown2.change(page2.make_model_visible, inputs=[dropdown2, use_case], outputs=page2.get_all_components())