Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
|
| 4 |
# lone github repro & add to sys paths
|
| 5 |
import gradio as gr
|
| 6 |
-
|
| 7 |
import os
|
| 8 |
import sys
|
| 9 |
import time
|
|
@@ -245,7 +245,13 @@ def reset_database(notion, database_id):
|
|
| 245 |
delete_page(page["id"])
|
| 246 |
|
| 247 |
print(f"Reset of database {database_id} completed.")
|
| 248 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 249 |
# Function to run on button click
|
| 250 |
@webhook_endpoint # Define a unique endpoint URL
|
| 251 |
async def update_table(request: Request):
|
|
|
|
| 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
|
|
|
|
| 245 |
delete_page(page["id"])
|
| 246 |
|
| 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"
|
| 254 |
+
|
| 255 |
# Function to run on button click
|
| 256 |
@webhook_endpoint # Define a unique endpoint URL
|
| 257 |
async def update_table(request: Request):
|