Spaces:
Running
Running
Nguyễn Bá Thiêm
commited on
Commit
·
5107a94
1
Parent(s):
62a5174
Add image processing dependencies and remove unused imports
Browse files- app.py +0 -2
- requirements.txt +3 -1
app.py
CHANGED
@@ -2,9 +2,7 @@ import time
|
|
2 |
import streamlit as st
|
3 |
import numpy as np
|
4 |
from PIL import Image
|
5 |
-
import cv2 # If you're using OpenCV for image processing
|
6 |
from io import BytesIO
|
7 |
-
import base64
|
8 |
from models.HAT.hat import *
|
9 |
# Initialize session state for enhanced images
|
10 |
if 'hat_enhanced_image' not in st.session_state:
|
|
|
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 |
# Initialize session state for enhanced images
|
8 |
if 'hat_enhanced_image' not in st.session_state:
|
requirements.txt
CHANGED
@@ -5,4 +5,6 @@ skimage
|
|
5 |
torchvision
|
6 |
torchmetrics
|
7 |
streamlit
|
8 |
-
gdown
|
|
|
|
|
|
5 |
torchvision
|
6 |
torchmetrics
|
7 |
streamlit
|
8 |
+
gdown
|
9 |
+
pillow
|
10 |
+
matplotlib
|