testspace / app.py
NataLobster's picture
Update app.py
2d023c2 verified
raw
history blame contribute delete
284 Bytes
from aura_sr import AuraSR
aura_sr = AuraSR.from_pretrained("fal-ai/AuraSR")
import requests
from io import BytesIO
from PIL import Image
filename = "photo_2024-07-16_12-49-37.jpg"
with Image.open(filename) as img:
img.load()
upscaled_img = aura_sr.upscale_4x(img)
img.show()