DonImages commited on
Commit
94b39ce
·
verified ·
1 Parent(s): d1a7285

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #DEBUG
2
+ from safetensors.torch import load_file
3
+
4
+ lora_path = "lora_trained_model.safetensors"
5
+ if os.path.exists(lora_path):
6
+ try:
7
+ lora_data = load_file(lora_path)
8
+ print("✅ LoRA file loaded successfully.")
9
+ print("🔹 LoRA Keys:", list(lora_data.keys())) # Check if keys match expected LoRA format
10
+ except Exception as e:
11
+ print(f"❌ Error reading LoRA file: {e}")