Spaces:
Runtime error
Runtime error
Logging timestamp as Notion title
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import numpy as np
|
|
4 |
import os
|
5 |
import gradio as gr
|
6 |
import requests
|
|
|
7 |
|
8 |
# set up model
|
9 |
authtoken = os.environ.get("TOKEN") or True
|
@@ -45,7 +46,7 @@ def logToNotion(text, top):
|
|
45 |
"title": {
|
46 |
"title": [{
|
47 |
"text": {
|
48 |
-
"content":
|
49 |
}
|
50 |
}]
|
51 |
},
|
|
|
4 |
import os
|
5 |
import gradio as gr
|
6 |
import requests
|
7 |
+
from datetime import datetime
|
8 |
|
9 |
# set up model
|
10 |
authtoken = os.environ.get("TOKEN") or True
|
|
|
46 |
"title": {
|
47 |
"title": [{
|
48 |
"text": {
|
49 |
+
"content": datetime.now().strftime("%d/%m/%Y %H:%M:%S")
|
50 |
}
|
51 |
}]
|
52 |
},
|