Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,8 @@ def load_image_model(token: str):
|
|
43 |
MODEL_NAME,
|
44 |
use_auth_token=token,
|
45 |
trust_remote_code=True, # ← allow custom code in the model repo
|
46 |
-
device=0
|
|
|
47 |
)
|
48 |
|
49 |
@st.cache_resource
|
|
|
43 |
MODEL_NAME,
|
44 |
use_auth_token=token,
|
45 |
trust_remote_code=True, # ← allow custom code in the model repo
|
46 |
+
device=0,# or -1 for CPU
|
47 |
+
model_type = "biogpt"
|
48 |
)
|
49 |
|
50 |
@st.cache_resource
|