Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,6 +55,14 @@ try:
|
|
| 55 |
except ImportError:
|
| 56 |
QWEN25_AVAILABLE = False
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
from gradio.themes import Soft
|
| 60 |
from gradio.themes.utils import colors, fonts, sizes
|
|
|
|
| 55 |
except ImportError:
|
| 56 |
QWEN25_AVAILABLE = False
|
| 57 |
|
| 58 |
+
try:
|
| 59 |
+
from peft import PeftModel, PeftConfig
|
| 60 |
+
PEFT_AVAILABLE = True
|
| 61 |
+
print("✅ PEFT available")
|
| 62 |
+
except ImportError:
|
| 63 |
+
PEFT_AVAILABLE = False
|
| 64 |
+
print("⚠️ PEFT not available")
|
| 65 |
+
|
| 66 |
|
| 67 |
from gradio.themes import Soft
|
| 68 |
from gradio.themes.utils import colors, fonts, sizes
|