genarative cores
This commit is contained in:
@@ -9,6 +9,7 @@ from app.api.services.office_auth import OfficeAuthService
|
||||
from app.api.services.web_contents import WebContentsService
|
||||
from app.api.services.subscriptions import SubscriptionsService
|
||||
from app.api.services.common_data import CommonDataService
|
||||
from app.api.services.genaratives import GenerativesService
|
||||
|
||||
|
||||
# OFFICE
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
from urllib import request
|
||||
|
||||
from flask import session, jsonify
|
||||
from app.api.integrations import GenerativeEngineIntegration
|
||||
from app.utils.logger import logger
|
||||
from app.api.services.base_service import BaseService
|
||||
from marshmallow import ValidationError
|
||||
from app.extensions import db
|
||||
from app.models import MembersProducts, Products, Members, ProductsDetails, ProductsDetails, ProvisionActions, \
|
||||
MembersProductsSettings, ProductsTemplates
|
||||
from app.api.helpers.response_helper import ResponseHelper
|
||||
from app.api.schemas.myproduct import MyProductSchema
|
||||
from app.api.schemas.provision import ProvisionSchema
|
||||
from app.api.schemas.myproduct_settings import MyProductSettingsSchema
|
||||
from threading import Thread
|
||||
|
||||
import datetime
|
||||
import random
|
||||
from app.config import Config
|
||||
|
||||
|
||||
class GenerativesService(BaseService):
|
||||
|
||||
@staticmethod
|
||||
def process_generatives_list(data):
|
||||
logger.info("ENTER GENERATIVE")
|
||||
|
||||
res = []
|
||||
# res = GenerativeEngineIntegration.ask_generative("write 3 pharagraphs on a dentist website ")
|
||||
logger.info(res)
|
||||
Reference in New Issue
Block a user