serJD commited on
Commit
bac2207
·
verified ·
1 Parent(s): 191c2aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -3,7 +3,6 @@
3
 
4
  # lone github repro & add to sys paths
5
  import gradio as gr
6
- from huggingface_hub import secrets
7
  import os
8
  import sys
9
  import time
@@ -247,7 +246,7 @@ def reset_database(notion, database_id):
247
  print(f"Reset of database {database_id} completed.")
248
 
249
 
250
- notion = Client(auth=secrets.get_secret("NOTION_TOKEN"))
251
  guiding_db_an = "1dafd962f861406d928bbdf109b9bfe4"
252
  land_use_abbr = "3b0e681e922a41409b6a13c11105c56a"
253
  target_db = "ec2a636f079d4d7686f94901b6238242"
@@ -262,9 +261,6 @@ async def update_table(request: Request):
262
 
263
  continueFlag = True
264
  # Accessing nested data in the 'event' object
265
-
266
- speckle_token = os.environ.get("SPECKLE_TOKEN")
267
- notion_token = os.environ.get("NOTION_TOKEN")
268
 
269
  if continueFlag:
270
  name_mapper = {}
 
3
 
4
  # lone github repro & add to sys paths
5
  import gradio as gr
 
6
  import os
7
  import sys
8
  import time
 
246
  print(f"Reset of database {database_id} completed.")
247
 
248
 
249
+ notion = Client(auth=os.environ.get("SPECKLE_TOKEN"))
250
  guiding_db_an = "1dafd962f861406d928bbdf109b9bfe4"
251
  land_use_abbr = "3b0e681e922a41409b6a13c11105c56a"
252
  target_db = "ec2a636f079d4d7686f94901b6238242"
 
261
 
262
  continueFlag = True
263
  # Accessing nested data in the 'event' object
 
 
 
264
 
265
  if continueFlag:
266
  name_mapper = {}