add aihub

This commit is contained in:
cdllp2 2022-09-30 16:52:37 +08:00
parent 04157a57b8
commit b3dd4eb215
3 changed files with 81 additions and 23 deletions

View File

@ -164,49 +164,56 @@
</div>
<div class="row" id="container">
<div class="img-block">
<div class="thumbnail" dataid="3">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/7-back.jpg" alt="...">
</div>
</div>
<div class="img-block">
<div class="thumbnail" dataid="3">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/5-back.jpg" alt="...">
</div>
</div>
<div class="img-block">
<div class="thumbnail" dataid="2">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/2示例.png" alt="...">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/1-back.jpg" alt="...">
</div>
</div>
<div class="img-block">
<div class="thumbnail" dataid="3">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/3示例.jpg" alt="...">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/2-back.jpg" alt="...">
</div>
</div>
<div class="img-block">
<div class="thumbnail" dataid="3">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/4示例.jpg" alt="...">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/3-back.jpg" alt="...">
</div>
</div>
<div class="img-block">
<div class="thumbnail" dataid="3">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/5示例.jpg" alt="...">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/4-back.jpg" alt="...">
</div>
</div>
<div class="img-block">
<div class="thumbnail" dataid="3">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/6-back.jpg" alt="...">
</div>
</div>
<div class="img-block">
<div class="thumbnail" dataid="3">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/8-back.jpg" alt="...">
</div>
</div>
<div class="img-block">
<div class="thumbnail" dataid="3">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/6示例.jpg" alt="...">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/9-back.jpg" alt="...">
</div>
</div>
<div class="img-block">
<div class="thumbnail" dataid="3">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/7示例.jpg" alt="...">
</div>
</div>
<div class="img-block">
<div class="thumbnail" dataid="3">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/8示例.jpg" alt="...">
</div>
</div>
<div class="img-block">
<div class="thumbnail" dataid="3">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/11示例.jpg" alt="...">
</div>
</div>
<div class="img-block">
<div class="thumbnail" dataid="3">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/12示例.jpg" alt="...">
<img src="https://luanpeng.oss-cn-qingdao.aliyuncs.com/github/aihub/ai-photo/10-back.jpg" alt="...">
</div>
</div>
</div>

View File

@ -0,0 +1,53 @@
"""empty message
Revision ID: ba5f3a6868ac
Revises: 7f780f1c8d40
Create Date: 2022-09-30 07:47:42.904037
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ba5f3a6868ac'
down_revision = '7f780f1c8d40'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('aihub',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('uuid', sa.String(length=2000), nullable=True),
sa.Column('status', sa.String(length=200), nullable=True),
sa.Column('doc', sa.String(length=200), nullable=True),
sa.Column('name', sa.String(length=200), nullable=True),
sa.Column('field', sa.String(length=200), nullable=True),
sa.Column('scenes', sa.String(length=200), nullable=True),
sa.Column('type', sa.String(length=200), nullable=True),
sa.Column('label', sa.String(length=200), nullable=True),
sa.Column('describe', sa.String(length=2000), nullable=True),
sa.Column('source', sa.String(length=200), nullable=True),
sa.Column('pic', sa.String(length=500), nullable=True),
sa.Column('dataset', sa.Text(), nullable=True),
sa.Column('notebook', sa.String(length=2000), nullable=True),
sa.Column('job_template', sa.Text(), nullable=True),
sa.Column('pre_train_model', sa.String(length=2000), nullable=True),
sa.Column('inference', sa.Text(), nullable=True),
sa.Column('service', sa.Text(), nullable=True),
sa.Column('version', sa.String(length=200), nullable=True),
sa.Column('hot', sa.Integer(), nullable=True),
sa.Column('price', sa.Integer(), nullable=True),
sa.PrimaryKeyConstraint('id')
)
op.create_unique_constraint(None, 'dimension', ['sqllchemy_uri', 'table_name'])
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_constraint(None, 'dimension', type_='unique')
op.drop_table('aihub')
# ### end Alembic commands ###

View File

@ -22,8 +22,6 @@ from wtforms import BooleanField, IntegerField,StringField, SelectField,FloatFie
from flask_appbuilder.fieldwidgets import BS3TextFieldWidget,BS3PasswordFieldWidget,DatePickerWidget,DateTimePickerWidget,Select2ManyWidget,Select2Widget
from myapp.forms import MyBS3TextAreaFieldWidget,MySelect2Widget,MyCodeArea,MyLineSeparatedListField,MyJSONField,MyBS3TextFieldWidget,MySelectMultipleField
from wtforms.ext.sqlalchemy.fields import QuerySelectField
from myapp.utils.security_api_impl import grant_hive_access_user
from myapp.views.view_dimension import Dimension_table_ModelView_Api
from .baseApi import (