whisper large v3, arranque run.sh
This commit is contained in:
@ -7,6 +7,36 @@
|
||||
# General application configuration
|
||||
import Config
|
||||
|
||||
env_file = ".env"
|
||||
|
||||
if File.exists?(env_file) do
|
||||
File.read!(env_file)
|
||||
|> String.split("\n", trim: true)
|
||||
|> Enum.each(fn line ->
|
||||
case String.split(line, "=", parts: 2) do
|
||||
[key, value] -> System.put_env(String.trim(key), String.trim(value))
|
||||
_ -> :ok
|
||||
end
|
||||
end)
|
||||
else
|
||||
IO.puts("Warning: #{env_file} not found.")
|
||||
end
|
||||
|
||||
# Configuración EXLA y Nx
|
||||
config :exla,
|
||||
clients: [
|
||||
cuda: [
|
||||
platform: :host,
|
||||
default_device_id: 0,
|
||||
preallocate: false,
|
||||
memory_fraction: 0.5
|
||||
],
|
||||
host: [platform: :host]
|
||||
]
|
||||
|
||||
config :nx,
|
||||
default_backend: {EXLA.Backend, client: :cuda}
|
||||
|
||||
config :whisper,
|
||||
generators: [timestamp_type: :utc_datetime]
|
||||
|
||||
@ -21,13 +51,6 @@ config :whisper, WhisperWeb.Endpoint,
|
||||
pubsub_server: Whisper.PubSub,
|
||||
live_view: [signing_salt: "n3QQrNXq"]
|
||||
|
||||
# Configures the mailer
|
||||
#
|
||||
# By default it uses the "Local" adapter which stores the emails
|
||||
# locally. You can see the emails in your browser, at "/dev/mailbox".
|
||||
#
|
||||
# For production it's recommended to configure a different adapter
|
||||
# at the `config/runtime.exs`.
|
||||
config :whisper, Whisper.Mailer, adapter: Swoosh.Adapters.Local
|
||||
|
||||
# Configure esbuild (the version is required)
|
||||
|
Reference in New Issue
Block a user