Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,8 +23,10 @@ def process_prompt(prompt):
|
|
23 |
return prompt, translated
|
24 |
return prompt, prompt
|
25 |
|
|
|
|
|
26 |
# Load LoRAs from JSON file
|
27 |
-
with open(
|
28 |
loras = json.load(f)
|
29 |
|
30 |
# Initialize the base model
|
|
|
23 |
return prompt, translated
|
24 |
return prompt, prompt
|
25 |
|
26 |
+
KEY_JSON = os.getenv("KEY_JSON")
|
27 |
+
|
28 |
# Load LoRAs from JSON file
|
29 |
+
with open(KEY_JSON, 'r') as f:
|
30 |
loras = json.load(f)
|
31 |
|
32 |
# Initialize the base model
|