Skip to content

Commit

Permalink
Adicionando linha de acordo com o PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
JJDSNT committed Sep 15, 2024
1 parent 8c853ea commit d603575
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# Criar as tabelas no banco de dados
Base.metadata.create_all(bind=engine)


# Dependência para obter a sessão do banco de dados
def get_db():
db = SessionLocal()
Expand Down
2 changes: 2 additions & 0 deletions app/models.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
from sqlalchemy import Column, Integer, String, Float
from .database import Base


class RawData(Base):
__tablename__ = 'raw_data'
id = Column(Integer, primary_key=True, index=True)
field1 = Column(String)
field2 = Column(Float)
# Outros campos...


class EnrichedData(Base):
__tablename__ = 'enriched_data'
id = Column(Integer, primary_key=True, index=True)
Expand Down
2 changes: 2 additions & 0 deletions app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

openai.api_key = os.getenv("OPENAI_API_KEY")


def validate_raw_data(df):
df_ge = ge.from_pandas(df)
# Definir suas expectativas aqui
Expand All @@ -14,6 +15,7 @@ def validate_raw_data(df):
results = df_ge.validate()
return results.success


def enrich_data(text):
response = openai.Completion.create(
engine="text-davinci-003",
Expand Down

0 comments on commit d603575

Please sign in to comment.