Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,6 @@ from huggingface_hub import webhook_endpoint, WebhookPayload
|
|
20 |
from fastapi import Request
|
21 |
import datetime
|
22 |
|
23 |
-
from huggingface_hub import WebhooksServer, WebhookPayload
|
24 |
import gradio as gr
|
25 |
|
26 |
|
@@ -39,7 +38,7 @@ with open(config_file_path, 'r') as f:
|
|
39 |
# notion login
|
40 |
speckle_token = os.environ.get("SPECKLE_TOKEN")
|
41 |
notion_token = os.environ.get("NOTION_TOKEN")
|
42 |
-
|
43 |
notion_token = notion_token
|
44 |
notion = Client(auth=notion_token)
|
45 |
|
@@ -154,7 +153,6 @@ def mainFunc(STREAM_ID, SOURCE_BRANCH, TARGET_BRANCH, UUID_COL, ATTR_METADATA, K
|
|
154 |
print(commit_id)
|
155 |
|
156 |
|
157 |
-
|
158 |
@webhook_endpoint
|
159 |
async def update_streams(request: Request):
|
160 |
# Initialize flag
|
|
|
20 |
from fastapi import Request
|
21 |
import datetime
|
22 |
|
|
|
23 |
import gradio as gr
|
24 |
|
25 |
|
|
|
38 |
# notion login
|
39 |
speckle_token = os.environ.get("SPECKLE_TOKEN")
|
40 |
notion_token = os.environ.get("NOTION_TOKEN")
|
41 |
+
|
42 |
notion_token = notion_token
|
43 |
notion = Client(auth=notion_token)
|
44 |
|
|
|
153 |
print(commit_id)
|
154 |
|
155 |
|
|
|
156 |
@webhook_endpoint
|
157 |
async def update_streams(request: Request):
|
158 |
# Initialize flag
|