kenken999 commited on
Commit
7bfb334
β€’
1 Parent(s): b18eae1
Files changed (24) hide show
  1. controllers/{ai/.gpteng/memory/logs/chat/__init__.py β†’ __init__.py} +0 -0
  2. controllers/{ai/.gpteng/memory/logs/all_output.txt β†’ all_output.txt} +0 -0
  3. {mysite/gradio β†’ controllers}/chat.py +0 -0
  4. controllers/{ai/.gpteng/memory/logs/chat β†’ chat}/Chat.py +0 -0
  5. controllers/{ai/.gpteng/memory/logs/chats β†’ chat}/__init__.py +0 -0
  6. controllers/{ai/.gpteng/memory/logs/chats β†’ chats}/OpenInterpreter.py +0 -0
  7. controllers/{ai/.gpteng/memory/logs/postg β†’ chats}/__init__.py +0 -0
  8. {mysite/gradio β†’ controllers}/files.py +0 -0
  9. controllers/{ai/.gpteng/memory/logs/greet β†’ greet}/greet.py +0 -0
  10. controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/.gpteng/memory/logs/all_output.txt +0 -0
  11. controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/.gpteng/memory/logs/gen_entrypoint_chat.txt +0 -0
  12. controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/DataBase.py +0 -0
  13. controllers/{ai/.gpteng/memory/logs/router β†’ postg}/__init__.py +0 -0
  14. controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/database.py +0 -0
  15. controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/models/ride.py +0 -0
  16. controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/prompt +0 -0
  17. controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/requirements.txt +0 -0
  18. controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/run.sh +0 -0
  19. controllers/router/__init__.py +0 -0
  20. controllers/{ai/.gpteng/memory/logs/router β†’ router}/router.py +0 -0
  21. controllers/{ai/.gpteng/memory/logs/test β†’ test}/.gpteng/memory/logs/all_output.txt +0 -0
  22. controllers/{ai/.gpteng/memory/logs/test β†’ test}/.gpteng/memory/logs/gen_entrypoint_chat.txt +0 -0
  23. mysite/asgi.py +1 -1
  24. mysite/gradio/gradio_config.py +2 -6
controllers/{ai/.gpteng/memory/logs/chat/__init__.py β†’ __init__.py} RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/all_output.txt β†’ all_output.txt} RENAMED
File without changes
{mysite/gradio β†’ controllers}/chat.py RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/chat β†’ chat}/Chat.py RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/chats β†’ chat}/__init__.py RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/chats β†’ chats}/OpenInterpreter.py RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/postg β†’ chats}/__init__.py RENAMED
File without changes
{mysite/gradio β†’ controllers}/files.py RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/greet β†’ greet}/greet.py RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/.gpteng/memory/logs/all_output.txt RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/.gpteng/memory/logs/gen_entrypoint_chat.txt RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/DataBase.py RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/router β†’ postg}/__init__.py RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/database.py RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/models/ride.py RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/prompt RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/requirements.txt RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/postg β†’ postg}/run.sh RENAMED
File without changes
controllers/router/__init__.py ADDED
File without changes
controllers/{ai/.gpteng/memory/logs/router β†’ router}/router.py RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/test β†’ test}/.gpteng/memory/logs/all_output.txt RENAMED
File without changes
controllers/{ai/.gpteng/memory/logs/test β†’ test}/.gpteng/memory/logs/gen_entrypoint_chat.txt RENAMED
File without changes
mysite/asgi.py CHANGED
@@ -7,7 +7,7 @@ from fastapi.templating import Jinja2Templates
7
  from starlette.middleware.cors import CORSMiddleware
8
 
9
  import gradio as gr
10
- from routers.router import setup_gradio_interfaces
11
  from mysite.webhook.webhook import setup_webhook_routes,include_routers
12
  from mysite.database.database import setup_database_routes
13
  from mysite.config.asgi_config import init_django_app
 
7
  from starlette.middleware.cors import CORSMiddleware
8
 
9
  import gradio as gr
10
+ from mysite.gradio.gradio_config import setup_gradio_interfaces
11
  from mysite.webhook.webhook import setup_webhook_routes,include_routers
12
  from mysite.database.database import setup_database_routes
13
  from mysite.config.asgi_config import init_django_app
mysite/gradio/gradio_config.py CHANGED
@@ -6,18 +6,14 @@ import mysite.interpreter.interpreter_config # γ‚€γƒ³γƒγƒΌγƒˆγ™γ‚‹γ γ‘γ§
6
  import importlib
7
  import os
8
  import pkgutil
9
- #from routers.chat.chat import demo44 as demo4
10
- #
11
- #from routers.postg.gradio_app import crud_interface
12
- #from routers.chats.chats import gradio_interface
13
 
14
 
15
  def include_gradio_interfaces():
16
- package_dir = "/home/user/app/routers"
17
  gradio_interfaces = []
18
  gradio_names = set()
19
 
20
- for module_info in pkgutil.walk_packages([package_dir], "routers."):
21
  sub_module_name = module_info.name
22
  try:
23
  print(f"Trying to import {sub_module_name}")
 
6
  import importlib
7
  import os
8
  import pkgutil
 
 
 
 
9
 
10
 
11
  def include_gradio_interfaces():
12
+ package_dir = "/home/user/app/controllers"
13
  gradio_interfaces = []
14
  gradio_names = set()
15
 
16
+ for module_info in pkgutil.walk_packages([package_dir], "controllers."):
17
  sub_module_name = module_info.name
18
  try:
19
  print(f"Trying to import {sub_module_name}")