Spaces:
Running
Running
Fix: move _ensure_main_dataset_schema call after function definition
Browse files
app.py
CHANGED
|
@@ -85,9 +85,6 @@ def _save_proxy_spaces():
|
|
| 85 |
|
| 86 |
_load_proxy_spaces()
|
| 87 |
|
| 88 |
-
# βββ Initialize main dataset schema on startup βββ
|
| 89 |
-
_ensure_main_dataset_schema()
|
| 90 |
-
|
| 91 |
|
| 92 |
def _save_chat_id(cid: str, sender_id: str):
|
| 93 |
if cid:
|
|
@@ -1921,6 +1918,10 @@ def get_dataset_info():
|
|
| 1921 |
return info
|
| 1922 |
|
| 1923 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1924 |
with gr.Blocks(title="Zalo Bot Webhook") as demo:
|
| 1925 |
gr.Markdown("# Zalo Bot Webhook Setup")
|
| 1926 |
with gr.Tabs():
|
|
|
|
| 85 |
|
| 86 |
_load_proxy_spaces()
|
| 87 |
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
def _save_chat_id(cid: str, sender_id: str):
|
| 90 |
if cid:
|
|
|
|
| 1918 |
return info
|
| 1919 |
|
| 1920 |
|
| 1921 |
+
# βββ Initialize main dataset schema on startup βββ
|
| 1922 |
+
_ensure_main_dataset_schema()
|
| 1923 |
+
|
| 1924 |
+
|
| 1925 |
with gr.Blocks(title="Zalo Bot Webhook") as demo:
|
| 1926 |
gr.Markdown("# Zalo Bot Webhook Setup")
|
| 1927 |
with gr.Tabs():
|