Spaces:
Running
on
Zero
Running
on
Zero
gokaygokay
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,8 @@ torch.load = lambda *args, **kwargs: original_load(*args, **kwargs, map_location
|
|
16 |
# Initialize the AuraSR model
|
17 |
aura_sr = AuraSR.from_pretrained("fal-ai/AuraSR")
|
18 |
|
19 |
-
#
|
20 |
-
|
21 |
-
aura_sr.to(device)
|
22 |
|
23 |
@spaces.GPU
|
24 |
def process_image(input_image):
|
@@ -69,5 +68,4 @@ with gr.Blocks() as demo:
|
|
69 |
outputs=output_slider
|
70 |
)
|
71 |
|
72 |
-
|
73 |
demo.launch(debug=True)
|
|
|
16 |
# Initialize the AuraSR model
|
17 |
aura_sr = AuraSR.from_pretrained("fal-ai/AuraSR")
|
18 |
|
19 |
+
# Restore original torch.load
|
20 |
+
torch.load = original_load
|
|
|
21 |
|
22 |
@spaces.GPU
|
23 |
def process_image(input_image):
|
|
|
68 |
outputs=output_slider
|
69 |
)
|
70 |
|
|
|
71 |
demo.launch(debug=True)
|