Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,7 @@ if 'HF_TOKEN' in os.environ:
|
|
19 |
else:
|
20 |
raise ValueError("HF_TOKEN not found in environment variables. Please add it to your Space's secrets.")
|
21 |
|
|
|
22 |
base_model = config['config']['model']['name_or_path']
|
23 |
lora_model = "sagar007/sagar_flux" # This isn't in the config, so we're keeping it as is
|
24 |
trigger_word = config['config']['trigger_word']
|
|
|
19 |
else:
|
20 |
raise ValueError("HF_TOKEN not found in environment variables. Please add it to your Space's secrets.")
|
21 |
|
22 |
+
# Correctly access the config values
|
23 |
base_model = config['config']['model']['name_or_path']
|
24 |
lora_model = "sagar007/sagar_flux" # This isn't in the config, so we're keeping it as is
|
25 |
trigger_word = config['config']['trigger_word']
|