Spaces:
Sleeping
Sleeping
fix: unexpected keyword argument 'use_fast'
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ else:
|
|
| 44 |
class LRMGeneratorWrapper:
|
| 45 |
def __init__(self):
|
| 46 |
self.config = AutoConfig.from_pretrained("yanranxiaoxi/image-upscale", trust_remote_code=True, token=os.environ.get('MODEL_ACCESS_TOKEN'), use_fast=False)
|
| 47 |
-
self.model = AutoModel.from_pretrained("yanranxiaoxi/image-upscale", trust_remote_code=True, token=os.environ.get('MODEL_ACCESS_TOKEN')
|
| 48 |
self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 49 |
self.model.to(self.device)
|
| 50 |
self.model.eval()
|
|
|
|
| 44 |
class LRMGeneratorWrapper:
|
| 45 |
def __init__(self):
|
| 46 |
self.config = AutoConfig.from_pretrained("yanranxiaoxi/image-upscale", trust_remote_code=True, token=os.environ.get('MODEL_ACCESS_TOKEN'), use_fast=False)
|
| 47 |
+
self.model = AutoModel.from_pretrained("yanranxiaoxi/image-upscale", trust_remote_code=True, token=os.environ.get('MODEL_ACCESS_TOKEN'))
|
| 48 |
self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 49 |
self.model.to(self.device)
|
| 50 |
self.model.eval()
|