eddddyy commited on
Commit
fbaf08f
·
verified ·
1 Parent(s): 0204d4a

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +8 -9
config.py CHANGED
@@ -1,19 +1,18 @@
1
  import os
2
 
3
- # Hugging Face Token
4
  HF_TOKEN = os.getenv("HF_TOKEN")
5
- if not HF_TOKEN:
6
- raise ValueError("❌ HF_TOKEN not set in environment variables.")
7
 
8
- # ✅ Updated Model to Load
9
- MODEL_ID = os.getenv("MODEL_ID", "meta-llama/Meta-Llama-3-8B-Instruct")
10
- # Allows override via env
11
 
12
  # Paths and Settings
13
- TEMP_DIR = os.getenv("TEMP_DIR", "/tmp") # For screenshots, temporary files, etc.
14
- ENABLE_EXECUTION = os.getenv("ENABLE_EXECUTION", "true").lower() == "true" # toggle command execution
15
 
16
- # OS Commands (override or customize per OS)
17
  OS_COMMANDS = {
18
  "open": {
19
  "chrome": "google-chrome",
 
1
  import os
2
 
3
+ # Hugging Face Token – not required for public models like google/medgemma-4b-it
4
  HF_TOKEN = os.getenv("HF_TOKEN")
5
+ if HF_TOKEN == "":
6
+ HF_TOKEN = None # Normalize empty string to None
7
 
8
+ # ✅ Public model (no gating or token needed unless rate-limited)
9
+ MODEL_ID = os.getenv("MODEL_ID", "google/medgemma-4b-it")
 
10
 
11
  # Paths and Settings
12
+ TEMP_DIR = os.getenv("TEMP_DIR", "/tmp") # Temporary storage (screenshots, temp files, etc.)
13
+ ENABLE_EXECUTION = os.getenv("ENABLE_EXECUTION", "true").lower() == "true" # Allow shell execution
14
 
15
+ # OS Commands (can be adjusted per OS)
16
  OS_COMMANDS = {
17
  "open": {
18
  "chrome": "google-chrome",