Spaces:
Sleeping
Sleeping
chore: share to True
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ else:
|
|
43 |
# 从 HF 加载预训练模型
|
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')
|
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)
|
@@ -296,4 +296,5 @@ with gr.Blocks() as demo:
|
|
296 |
|
297 |
demo.launch(
|
298 |
auth=(os.environ.get('AUTH_USERNAME'), os.environ.get('AUTH_PASSWORD'))
|
|
|
299 |
)
|
|
|
43 |
# 从 HF 加载预训练模型
|
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'))
|
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)
|
|
|
296 |
|
297 |
demo.launch(
|
298 |
auth=(os.environ.get('AUTH_USERNAME'), os.environ.get('AUTH_PASSWORD'))
|
299 |
+
share=True
|
300 |
)
|