deploy-s2s-api / s2smodels.py
3v324v23's picture
Add application file
c2bb5f2
raw
history blame
556 Bytes
from sqlalchemy import Column,Integer, String,Float,BINARY
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
#create audio_segments tables
class Audio_segment(Base):
__tablename__ = "audioSegments"
id = Column(Integer, primary_key=True)
start_time = Column(Float)
end_time = Column(Float)
type = Column(String)
audio=Column(BINARY)
#create audio_generation table
class AudioGeneration(Base):
__tablename__ = "audioGeneration"
id = Column(Integer, primary_key=True)
audio=Column(BINARY)