Update app.py
Browse files
app.py
CHANGED
|
@@ -25,9 +25,9 @@ def log_to_notion(name, user_input, bot_response):
|
|
| 25 |
parent={"database_id": NOTION_DB_ID},
|
| 26 |
properties={
|
| 27 |
"Name": {"title": [{"text": {"content": name}}]},
|
| 28 |
-
"Timestamp": {"date": {"start": datetime.now().isoformat()}}
|
| 29 |
"User Input": {"rich_text": [{"text": {"content": user_input}}]},
|
| 30 |
-
"Bot Response": {"rich_text": [{"text": {"content": bot_response}}]}
|
| 31 |
}
|
| 32 |
)
|
| 33 |
|
|
@@ -91,3 +91,4 @@ with gr.Blocks() as demo:
|
|
| 91 |
if __name__ == "__main__":
|
| 92 |
demo.queue()
|
| 93 |
demo.launch()
|
|
|
|
|
|
| 25 |
parent={"database_id": NOTION_DB_ID},
|
| 26 |
properties={
|
| 27 |
"Name": {"title": [{"text": {"content": name}}]},
|
| 28 |
+
"Timestamp": {"date": {"start": datetime.now().isoformat()}},
|
| 29 |
"User Input": {"rich_text": [{"text": {"content": user_input}}]},
|
| 30 |
+
"Bot Response": {"rich_text": [{"text": {"content": bot_response}}]}
|
| 31 |
}
|
| 32 |
)
|
| 33 |
|
|
|
|
| 91 |
if __name__ == "__main__":
|
| 92 |
demo.queue()
|
| 93 |
demo.launch()
|
| 94 |
+
|