Spaces:
Running
on
Zero
Running
on
Zero
fda
Browse files- babyagi/babyagi.py +1 -1
- babyagi/classesa/diamond.py +3 -3
- babyagi/classesa/vector.py +1 -1
- babyagi/prompt.txt +1 -3
- controllers/gpt_enginner20240629091622 +1 -0
- controllers/gpt_enginner20240629092038 +1 -0
- controllers/gpt_enginner20240629092742 +1 -0
- controllers/gpt_enginner20240629093004 +1 -0
- controllers/gpt_enginner20240629093521 +1 -0
- controllers/gpt_enginner20240629094021 +1 -0
- controllers/gpt_enginner20240629094229 +1 -0
- controllers/gpt_enginner20240629094603 +1 -0
- controllers/gpt_enginner20240629094919 +1 -0
- controllers/gpt_enginner20240629095102 +1 -0
- controllers/gpt_enginner20240629100559 +1 -0
- controllers/gpt_enginner20240629100837 +1 -0
- controllers/gpt_enginner20240629101235 +1 -0
- mysite/routers/diamond.py +1 -1
- refaster_project/manage.py +22 -0
- refaster_project/refaster_project/__init__.py +0 -0
- refaster_project/refaster_project/asgi.py +16 -0
- refaster_project/refaster_project/settings.py +123 -0
- refaster_project/refaster_project/urls.py +22 -0
- refaster_project/refaster_project/wsgi.py +16 -0
babyagi/babyagi.py
CHANGED
@@ -1020,7 +1020,7 @@ with gr.Blocks(fill_height=True, css=css) as gradio_babyagi:
|
|
1020 |
|
1021 |
def test_postgres():
|
1022 |
# データベース接続情報
|
1023 |
-
DATABASE_URL =
|
1024 |
|
1025 |
# ProductDatabaseクラスのインスタンスを作成
|
1026 |
db = ProductDatabase(DATABASE_URL)
|
|
|
1020 |
|
1021 |
def test_postgres():
|
1022 |
# データベース接続情報
|
1023 |
+
DATABASE_URL = os.getenv("postgre_url")
|
1024 |
|
1025 |
# ProductDatabaseクラスのインスタンスを作成
|
1026 |
db = ProductDatabase(DATABASE_URL)
|
babyagi/classesa/diamond.py
CHANGED
@@ -65,7 +65,7 @@ class ProductDatabase:
|
|
65 |
|
66 |
def create_index():
|
67 |
# データベース接続情報
|
68 |
-
DATABASE_URL =
|
69 |
|
70 |
# ProductDatabaseクラスのインスタンスを作成
|
71 |
db = ProductDatabase(DATABASE_URL)
|
@@ -120,7 +120,7 @@ def create_index():
|
|
120 |
|
121 |
def calculate(query):
|
122 |
# データベース接続情報
|
123 |
-
DATABASE_URL =
|
124 |
|
125 |
# ProductDatabaseクラスのインスタンスを作成
|
126 |
db = ProductDatabase(DATABASE_URL)
|
@@ -175,7 +175,7 @@ def calculate(query):
|
|
175 |
|
176 |
def main():
|
177 |
# データベース接続情報
|
178 |
-
DATABASE_URL =
|
179 |
|
180 |
# ProductDatabaseクラスのインスタンスを作成
|
181 |
db = ProductDatabase(DATABASE_URL)
|
|
|
65 |
|
66 |
def create_index():
|
67 |
# データベース接続情報
|
68 |
+
DATABASE_URL = os.getenv("postgre_url")
|
69 |
|
70 |
# ProductDatabaseクラスのインスタンスを作成
|
71 |
db = ProductDatabase(DATABASE_URL)
|
|
|
120 |
|
121 |
def calculate(query):
|
122 |
# データベース接続情報
|
123 |
+
DATABASE_URL = os.getenv("postgre_url")
|
124 |
|
125 |
# ProductDatabaseクラスのインスタンスを作成
|
126 |
db = ProductDatabase(DATABASE_URL)
|
|
|
175 |
|
176 |
def main():
|
177 |
# データベース接続情報
|
178 |
+
DATABASE_URL = os.getenv("postgre_url")
|
179 |
|
180 |
# ProductDatabaseクラスのインスタンスを作成
|
181 |
db = ProductDatabase(DATABASE_URL)
|
babyagi/classesa/vector.py
CHANGED
@@ -48,7 +48,7 @@ class ProductDatabase:
|
|
48 |
|
49 |
def main():
|
50 |
# データベース接続情報
|
51 |
-
DATABASE_URL =
|
52 |
|
53 |
# ProductDatabaseクラスのインスタンスを作成
|
54 |
db = ProductDatabase(DATABASE_URL)
|
|
|
48 |
|
49 |
def main():
|
50 |
# データベース接続情報
|
51 |
+
DATABASE_URL = os.getenv("postgre_url")
|
52 |
|
53 |
# ProductDatabaseクラスのインスタンスを作成
|
54 |
db = ProductDatabase(DATABASE_URL)
|
babyagi/prompt.txt
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
|
2 |
-
それでは同包させていただきます。
|
3 |
-
よろしくお願いします🙇♀️の質問 についてチャットボットでよりよく対応するプランを日本語で作成して
|
|
|
1 |
+
【応答】撮影ポイントの質問 についてチャットボットでよりよく対応するプランを日本語で作成して
|
|
|
|
controllers/gpt_enginner20240629091622
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit ee0113f0822444dc2a31b11bd82b5ab605e83ac7
|
controllers/gpt_enginner20240629092038
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit c049512fbe02cc9694461e82b501848f3c7b69b5
|
controllers/gpt_enginner20240629092742
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 7f38b34a079765d23f09ca3259af5691be864a27
|
controllers/gpt_enginner20240629093004
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit d2840c95b7f4b6d9da95cb0a839e41e1b333e283
|
controllers/gpt_enginner20240629093521
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 931d752caa1bd8b00782a6af749c6c26d0b5c43b
|
controllers/gpt_enginner20240629094021
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 6ea3fb3dabcd8d2af5bdb339d354c3a17504c71e
|
controllers/gpt_enginner20240629094229
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit bf1fedeb897917fc2762cb6d0eb76aa903c00459
|
controllers/gpt_enginner20240629094603
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 41587c4ec3ce1331feeddff131b2d4d5e479e962
|
controllers/gpt_enginner20240629094919
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 01904eb54c36eb5f10b7421768f93eb2f44e116c
|
controllers/gpt_enginner20240629095102
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 566e27e88e740aa7d6f12e9356e35d6654c4e9d0
|
controllers/gpt_enginner20240629100559
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 9fbbf34d9fd59b566c8ffafc3808ea54018e37af
|
controllers/gpt_enginner20240629100837
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit aa6390706a6a2e96413b3420d23430f9144dc2b4
|
controllers/gpt_enginner20240629101235
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 737d526dbc47ff35724ef7f662fdaa6572f0941c
|
mysite/routers/diamond.py
CHANGED
@@ -82,7 +82,7 @@ class ProductDatabase:
|
|
82 |
|
83 |
def calculate(query:str):
|
84 |
# データベース接続情報
|
85 |
-
DATABASE_URL =
|
86 |
|
87 |
# ProductDatabaseクラスのインスタンスを作成
|
88 |
db = ProductDatabase(DATABASE_URL)
|
|
|
82 |
|
83 |
def calculate(query:str):
|
84 |
# データベース接続情報
|
85 |
+
DATABASE_URL = os.getenv("postgre_url")
|
86 |
|
87 |
# ProductDatabaseクラスのインスタンスを作成
|
88 |
db = ProductDatabase(DATABASE_URL)
|
refaster_project/manage.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python
|
2 |
+
"""Django's command-line utility for administrative tasks."""
|
3 |
+
import os
|
4 |
+
import sys
|
5 |
+
|
6 |
+
|
7 |
+
def main():
|
8 |
+
"""Run administrative tasks."""
|
9 |
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'refaster_project.settings')
|
10 |
+
try:
|
11 |
+
from django.core.management import execute_from_command_line
|
12 |
+
except ImportError as exc:
|
13 |
+
raise ImportError(
|
14 |
+
"Couldn't import Django. Are you sure it's installed and "
|
15 |
+
"available on your PYTHONPATH environment variable? Did you "
|
16 |
+
"forget to activate a virtual environment?"
|
17 |
+
) from exc
|
18 |
+
execute_from_command_line(sys.argv)
|
19 |
+
|
20 |
+
|
21 |
+
if __name__ == '__main__':
|
22 |
+
main()
|
refaster_project/refaster_project/__init__.py
ADDED
File without changes
|
refaster_project/refaster_project/asgi.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
ASGI config for refaster_project project.
|
3 |
+
|
4 |
+
It exposes the ASGI callable as a module-level variable named ``application``.
|
5 |
+
|
6 |
+
For more information on this file, see
|
7 |
+
https://docs.djangoproject.com/en/5.0/howto/deployment/asgi/
|
8 |
+
"""
|
9 |
+
|
10 |
+
import os
|
11 |
+
|
12 |
+
from django.core.asgi import get_asgi_application
|
13 |
+
|
14 |
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'refaster_project.settings')
|
15 |
+
|
16 |
+
application = get_asgi_application()
|
refaster_project/refaster_project/settings.py
ADDED
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Django settings for refaster_project project.
|
3 |
+
|
4 |
+
Generated by 'django-admin startproject' using Django 5.0.4.
|
5 |
+
|
6 |
+
For more information on this file, see
|
7 |
+
https://docs.djangoproject.com/en/5.0/topics/settings/
|
8 |
+
|
9 |
+
For the full list of settings and their values, see
|
10 |
+
https://docs.djangoproject.com/en/5.0/ref/settings/
|
11 |
+
"""
|
12 |
+
|
13 |
+
from pathlib import Path
|
14 |
+
|
15 |
+
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
16 |
+
BASE_DIR = Path(__file__).resolve().parent.parent
|
17 |
+
|
18 |
+
|
19 |
+
# Quick-start development settings - unsuitable for production
|
20 |
+
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
|
21 |
+
|
22 |
+
# SECURITY WARNING: keep the secret key used in production secret!
|
23 |
+
SECRET_KEY = 'django-insecure-op4*gu(8n5rwf!ud#t#=1+$*o#8qam$9ez7!%8z$k(b^qn&69d'
|
24 |
+
|
25 |
+
# SECURITY WARNING: don't run with debug turned on in production!
|
26 |
+
DEBUG = True
|
27 |
+
|
28 |
+
ALLOWED_HOSTS = []
|
29 |
+
|
30 |
+
|
31 |
+
# Application definition
|
32 |
+
|
33 |
+
INSTALLED_APPS = [
|
34 |
+
'django.contrib.admin',
|
35 |
+
'django.contrib.auth',
|
36 |
+
'django.contrib.contenttypes',
|
37 |
+
'django.contrib.sessions',
|
38 |
+
'django.contrib.messages',
|
39 |
+
'django.contrib.staticfiles',
|
40 |
+
]
|
41 |
+
|
42 |
+
MIDDLEWARE = [
|
43 |
+
'django.middleware.security.SecurityMiddleware',
|
44 |
+
'django.contrib.sessions.middleware.SessionMiddleware',
|
45 |
+
'django.middleware.common.CommonMiddleware',
|
46 |
+
'django.middleware.csrf.CsrfViewMiddleware',
|
47 |
+
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
48 |
+
'django.contrib.messages.middleware.MessageMiddleware',
|
49 |
+
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
50 |
+
]
|
51 |
+
|
52 |
+
ROOT_URLCONF = 'refaster_project.urls'
|
53 |
+
|
54 |
+
TEMPLATES = [
|
55 |
+
{
|
56 |
+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
57 |
+
'DIRS': [],
|
58 |
+
'APP_DIRS': True,
|
59 |
+
'OPTIONS': {
|
60 |
+
'context_processors': [
|
61 |
+
'django.template.context_processors.debug',
|
62 |
+
'django.template.context_processors.request',
|
63 |
+
'django.contrib.auth.context_processors.auth',
|
64 |
+
'django.contrib.messages.context_processors.messages',
|
65 |
+
],
|
66 |
+
},
|
67 |
+
},
|
68 |
+
]
|
69 |
+
|
70 |
+
WSGI_APPLICATION = 'refaster_project.wsgi.application'
|
71 |
+
|
72 |
+
|
73 |
+
# Database
|
74 |
+
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases
|
75 |
+
|
76 |
+
DATABASES = {
|
77 |
+
'default': {
|
78 |
+
'ENGINE': 'django.db.backends.sqlite3',
|
79 |
+
'NAME': BASE_DIR / 'db.sqlite3',
|
80 |
+
}
|
81 |
+
}
|
82 |
+
|
83 |
+
|
84 |
+
# Password validation
|
85 |
+
# https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators
|
86 |
+
|
87 |
+
AUTH_PASSWORD_VALIDATORS = [
|
88 |
+
{
|
89 |
+
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
90 |
+
},
|
91 |
+
{
|
92 |
+
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
|
93 |
+
},
|
94 |
+
{
|
95 |
+
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
|
96 |
+
},
|
97 |
+
{
|
98 |
+
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
|
99 |
+
},
|
100 |
+
]
|
101 |
+
|
102 |
+
|
103 |
+
# Internationalization
|
104 |
+
# https://docs.djangoproject.com/en/5.0/topics/i18n/
|
105 |
+
|
106 |
+
LANGUAGE_CODE = 'en-us'
|
107 |
+
|
108 |
+
TIME_ZONE = 'UTC'
|
109 |
+
|
110 |
+
USE_I18N = True
|
111 |
+
|
112 |
+
USE_TZ = True
|
113 |
+
|
114 |
+
|
115 |
+
# Static files (CSS, JavaScript, Images)
|
116 |
+
# https://docs.djangoproject.com/en/5.0/howto/static-files/
|
117 |
+
|
118 |
+
STATIC_URL = 'static/'
|
119 |
+
|
120 |
+
# Default primary key field type
|
121 |
+
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
|
122 |
+
|
123 |
+
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
refaster_project/refaster_project/urls.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
URL configuration for refaster_project project.
|
3 |
+
|
4 |
+
The `urlpatterns` list routes URLs to views. For more information please see:
|
5 |
+
https://docs.djangoproject.com/en/5.0/topics/http/urls/
|
6 |
+
Examples:
|
7 |
+
Function views
|
8 |
+
1. Add an import: from my_app import views
|
9 |
+
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
10 |
+
Class-based views
|
11 |
+
1. Add an import: from other_app.views import Home
|
12 |
+
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
13 |
+
Including another URLconf
|
14 |
+
1. Import the include() function: from django.urls import include, path
|
15 |
+
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
16 |
+
"""
|
17 |
+
from django.contrib import admin
|
18 |
+
from django.urls import path
|
19 |
+
|
20 |
+
urlpatterns = [
|
21 |
+
path('admin/', admin.site.urls),
|
22 |
+
]
|
refaster_project/refaster_project/wsgi.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
WSGI config for refaster_project project.
|
3 |
+
|
4 |
+
It exposes the WSGI callable as a module-level variable named ``application``.
|
5 |
+
|
6 |
+
For more information on this file, see
|
7 |
+
https://docs.djangoproject.com/en/5.0/howto/deployment/wsgi/
|
8 |
+
"""
|
9 |
+
|
10 |
+
import os
|
11 |
+
|
12 |
+
from django.core.wsgi import get_wsgi_application
|
13 |
+
|
14 |
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'refaster_project.settings')
|
15 |
+
|
16 |
+
application = get_wsgi_application()
|