Chris4K commited on
Commit
7f9b308
·
verified ·
1 Parent(s): 7ed92c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -590,27 +590,27 @@ if __name__ == "__main__":
590
  secret=BROWSER_STORAGE_SECRET,
591
  )
592
  current_uuid_state = gr.BrowserState(
593
- value=uuid4,
594
  storage_key="current_uuid_state",
595
  secret=BROWSER_STORAGE_SECRET,
596
  )
597
  current_langgraph_state = gr.BrowserState(
598
- value=dict,
599
  storage_key="current_langgraph_state",
600
  secret=BROWSER_STORAGE_SECRET,
601
  )
602
  sidebar_names_state = gr.BrowserState(
603
- value=dict,
604
  storage_key="sidebar_names_state",
605
  secret=BROWSER_STORAGE_SECRET,
606
  )
607
  offloaded_tabs_data_storage = gr.BrowserState(
608
- value=dict,
609
  storage_key="offloaded_tabs_data_storage",
610
  secret=BROWSER_STORAGE_SECRET,
611
  )
612
  chatbot_message_storage = gr.BrowserState(
613
- value=list,
614
  storage_key="chatbot_message_storage",
615
  secret=BROWSER_STORAGE_SECRET,
616
  )
 
590
  secret=BROWSER_STORAGE_SECRET,
591
  )
592
  current_uuid_state = gr.BrowserState(
593
+ value=uuid4(), # Call the function to get an actual UUID
594
  storage_key="current_uuid_state",
595
  secret=BROWSER_STORAGE_SECRET,
596
  )
597
  current_langgraph_state = gr.BrowserState(
598
+ value={}, # Empty dict instead of dict type
599
  storage_key="current_langgraph_state",
600
  secret=BROWSER_STORAGE_SECRET,
601
  )
602
  sidebar_names_state = gr.BrowserState(
603
+ value={}, # Empty dict instead of dict type
604
  storage_key="sidebar_names_state",
605
  secret=BROWSER_STORAGE_SECRET,
606
  )
607
  offloaded_tabs_data_storage = gr.BrowserState(
608
+ value={}, # Empty dict instead of dict type
609
  storage_key="offloaded_tabs_data_storage",
610
  secret=BROWSER_STORAGE_SECRET,
611
  )
612
  chatbot_message_storage = gr.BrowserState(
613
+ value=[], # Empty list instead of list type
614
  storage_key="chatbot_message_storage",
615
  secret=BROWSER_STORAGE_SECRET,
616
  )