Skip to content

Commit

Permalink
💎 last fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-schmitt committed May 31, 2024
1 parent 197c64a commit f45a6e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ def __extract_activities(
)
except ValueError:
scaling_factor = df.shape[0] / (number_of_senteces - 1)
df["sentence_id"] = df.reset_index().index * scaling_factor
df["sentence_id"] = int(df.reset_index().index * scaling_factor)

return df
1 change: 0 additions & 1 deletion tracex_project/tracex/logic/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
MAX_TOKENS: Final = 1100
MODEL: Final = "gpt-3.5-turbo"
OAIK: Final = os.environ.get("OPENAI_API_KEY")
DJANGO_SECRET_KEY: Final = os.environ.get("DJANGO_SECRET_KEY")
TEMPERATURE_SUMMARIZING: Final = 0
TEMPERATURE_CREATION: Final = 1
THRESHOLD_FOR_MATCH: Final = 0.5
Expand Down
2 changes: 1 addition & 1 deletion tracex_project/tracex/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

DEBUG = True

ALLOWED_HOSTS = ["*"]
ALLOWED_HOSTS = []


# Application definition
Expand Down

0 comments on commit f45a6e6

Please sign in to comment.