Spaces:
Running
on
Zero
Running
on
Zero
dfa
Browse files- routers/webhook.py +20 -1
routers/webhook.py
CHANGED
@@ -1,5 +1,24 @@
|
|
1 |
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
#router = APIRouter()
|
5 |
router = APIRouter()
|
|
|
1 |
|
2 |
+
import os
|
3 |
+
import sys
|
4 |
+
import subprocess
|
5 |
+
import logging
|
6 |
+
from fastapi import FastAPI, Request, HTTPException
|
7 |
+
import requests
|
8 |
+
import json
|
9 |
+
from datetime import datetime
|
10 |
+
import importlib
|
11 |
+
import pkgutil
|
12 |
+
from mysite.libs.utilities import validate_signature, no_process_file
|
13 |
+
#from mysite.database.database import ride,create_ride
|
14 |
+
from controllers.gra_04_database.rides import test_set_lide
|
15 |
+
from mysite.interpreter.prompt import prompt_genalate,test_prompt
|
16 |
+
from mysite.interpreter.google_chat import send_google_chat_card,send_google_chat_card_thread
|
17 |
+
#from mysite.interpreter.interpreter import chat_with_interpreter
|
18 |
+
from controllers.gra_02_openInterpreter.OpenInterpreter import chat_with_interpreter_no_stream
|
19 |
+
from mysite.appsheet.appsheet import get_senario
|
20 |
+
import asyncio
|
21 |
+
logger = logging.getLogger(__name__)
|
22 |
|
23 |
#router = APIRouter()
|
24 |
router = APIRouter()
|