File size: 962 Bytes
614aa6b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# fly.toml app configuration file generated for backend-damp-fog-5601 on 2026-03-26T21:56:01-03:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'backend-damp-fog-5601'
primary_region = 'gru'

[build]
  dockerfile = 'Dockerfile'

[env]
  PORT = '7860'
  PRELOAD_AGENT = 'true'
  EMBEDDING_PROVIDER = 'transformers'
  HF_MODEL_REPO = 'Ana2012/bertimbau-buscador'
  HF_HOME = '/home/user/.cache/huggingface'
  HF_HUB_CACHE = '/home/user/.cache/huggingface/hub'
  TRANSFORMERS_CACHE = '/home/user/.cache/huggingface/transformers'

[processes]
  app = "sh -c 'python -m uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-7860}'"

[http_service]
  internal_port = 7860
  force_https = true
  auto_stop_machines = 'stop'
  auto_start_machines = true
  min_machines_running = 1
  processes = ['app']

[[mounts]]
  source = "data"
  destination = "/data"

[[vm]]
  memory = '2gb'
  cpus = 1
  memory_mb = 2048