Spaces:
Running
Running
add code to install natsort
Browse files
app.py
CHANGED
@@ -1,11 +1,14 @@
|
|
1 |
import time
|
2 |
import streamlit as st
|
|
|
3 |
import numpy as np
|
4 |
from PIL import Image
|
5 |
from io import BytesIO
|
6 |
from models.HAT.hat import *
|
7 |
from models.RCAN.rcan import *
|
8 |
from models.SRGAN.srgan import *
|
|
|
|
|
9 |
from models.SRFlow.srflow import *
|
10 |
|
11 |
# Initialize session state for enhanced images
|
|
|
1 |
import time
|
2 |
import streamlit as st
|
3 |
+
import subprocess
|
4 |
import numpy as np
|
5 |
from PIL import Image
|
6 |
from io import BytesIO
|
7 |
from models.HAT.hat import *
|
8 |
from models.RCAN.rcan import *
|
9 |
from models.SRGAN.srgan import *
|
10 |
+
|
11 |
+
subprocess.call('pip install natsort', shell=True)
|
12 |
from models.SRFlow.srflow import *
|
13 |
|
14 |
# Initialize session state for enhanced images
|