OGOGOG commited on
Commit
8647612
·
verified ·
1 Parent(s): 7b9ac74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -12,8 +12,11 @@ DATASET_ID = "motimmom/cocktails_clean_nobrand"
12
  EMBED_MODEL = "sentence-transformers/all-MiniLM-L6-v2"
13
  FLAVOR_BOOST = 0.20
14
 
15
- # Pick ONE working image URL here (https or file=...); this one is known-good
16
- BACKGROUND_IMAGE_URL = "https://huggingface.co/spaces/OGOGOG/AI_Bartender/resolve/main/bar.jpg"
 
 
 
17
 
18
  # If dataset is private, add Space secret HF_TOKEN (read scope)
19
  HF_READ_TOKEN = os.getenv("HF_TOKEN") or os.getenv("HUGGING_FACE_HUB_TOKEN")
@@ -251,7 +254,7 @@ body::before {{
251
  content: "";
252
  position: fixed;
253
  inset: 0;
254
- background: rgba(0,0,0,0.45);
255
  z-index: 0;
256
  }}
257
  /* Make the app transparent and float above overlay */
 
12
  EMBED_MODEL = "sentence-transformers/all-MiniLM-L6-v2"
13
  FLAVOR_BOOST = 0.20
14
 
15
+ # Use the image you uploaded at the root of the Space repo:
16
+ BACKGROUND_IMAGE_URL = "file=bar.jpg" # <-- safest: served by Gradio from your Space files
17
+
18
+ # If you prefer the remote URL, make sure the space name uses the HY-PHEN:
19
+ # BACKGROUND_IMAGE_URL = "https://huggingface.co/spaces/OGOGOG/AI-Bartender/resolve/main/bar.jpg"
20
 
21
  # If dataset is private, add Space secret HF_TOKEN (read scope)
22
  HF_READ_TOKEN = os.getenv("HF_TOKEN") or os.getenv("HUGGING_FACE_HUB_TOKEN")
 
254
  content: "";
255
  position: fixed;
256
  inset: 0;
257
+ background: rgba(0,0,0,0.30); /* slightly lighter so image shows */
258
  z-index: 0;
259
  }}
260
  /* Make the app transparent and float above overlay */