From 3ae692e77867564719297ff2f7674ab53eb8a606 Mon Sep 17 00:00:00 2001 From: sssplCodeStar Date: Mon, 11 Mar 2024 22:23:54 +0530 Subject: [PATCH 1/2] requirents updated --- FRONTEND.py | 4 +--- requirements.txt | Bin 4484 -> 334 bytes 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/FRONTEND.py b/FRONTEND.py index 5c5a287..1f92881 100644 --- a/FRONTEND.py +++ b/FRONTEND.py @@ -20,12 +20,10 @@ def set_background(image_file): background-image: url(data:image/png;base64,{b64_encoded}); background-size:cover; - - }} """ -st.markdown(style, unsafe_allow_html=True) + st.markdown(style, unsafe_allow_html=True) st.title("Image Forgery Detector") show_pages( diff --git a/requirements.txt b/requirements.txt index d4c2a864d218b045b75e338ed67492ece3715c5d..8f529b8d37e5b9fcb8f0d0ca96b096cb16164d6f 100644 GIT binary patch delta 72 zcmZosKF1{a|6evkDnk)NB118QEf5+r=rI@ovFYSMcFD;u>_U?#a0E==#;GvbipPSt Xgdv`x0H`({sHb>xA+Ppi8$K-nv+)u) literal 4484 zcmZ{nPj4Gn48-5LK)*wQoLyM5;--h*3KS?%AV3d22G&Y)#(icChQlo{S-bvJ?QkY?b?^NZoM*PhJ}1)V+MRqvhJ1VAfI)3f#Fi$i_wcXSRH{p zg=49copN-6_cnaaUwN!$J1NFiNKdM25UP`MF2dV*i0FJvd2pg@pTiE4Vg>6~h^flF zV54sH0uD~DqxM~712^n}+&Q{9ZA9D1GS~UJ5V^K_R8E}a<)}XO!hL9W`WqOYo)I`M zCtu;}hm%}S@vLK|yE$y&(qA!=Fa6gc+s zNh{qnPitibr=)v2RYL?$Aj6!=+;9Kh>N zmD5Z1fU9+F<~enJ9ct(l)tw;9<;WJj_$-B|TAYRRu3;;b{m2+L*S`$~UXPt4o@c}p zf_1N42jNHUOX0hdFB@s4FaJ}KColW84GhzYt^b*^n{g21VKseAA)aV_-Iurg&ZLpOaKY|IUv>z)fv%-`*bc@+Eg6d~Mu*YaC!K>S zwypI}?daWIxREAbdc&^g2Igz(UV5VFrJ{58I(k5Sdbhs z^QTTSwZt^fiHw*>d9XcGk(n8ut&z99$lgb1`Y|%OsoQgKr%Kqhwg0eLRd>Od??|IE z+hyneUJ22ou&rNp#W9#XCg&lla@}+rrm)dV&l&Yli+73b%m1m02y8s}yq7lEvHjRn zE6-Z;&6#o7cfP&sL%)cVC{IF}9Wn!)_pW1yqw7vt+{fvRgV%`I{Kn<2f2LEgKZxPG zs2~1Hv1~kU$}1@wzq|wRFfKfLF`TMK6?~l~t=uzAE-$9q`BXubo>qLh4ZJ^Lv2?T7 zS#Yq2hw;|08x1x+ANbwsgYxOtOgLWRVFNPNUlj)r>|jW|zMrxeY{I;uys66bpe%HR z$;ms4DR%c#hl^49WMwkgk=%Xcc0{s!I`*M+Zko0F$SWohnpKp70^o^gS)=h6vPboU zZRrb*-Yt21;6q*J z=O7IEx}C*YcuCt{l@8;SWq)Q-r9F59ZNIrZ8t&Ql zux;gKY9L zwVQIsrj6*HaclJDN%YGL)my%9u%i^j?-kIan#-s(`@!!q`pPur)OrJWnw*=B<;njf zzlUd5r!PhP>vm=vO<&8ew-R<(^{;2Jk=3aDCh?2x;#o&ktv5Jtd-fueTQ|-;`1EYw zhn;-`E52bt347_$#oLf~jDK@ub0*Ktz3N@+%L`zqIA)>pnJZZOOJ2PF_;q|5v$^}Z v)$f&q-;32@ehn2CdXc{vU+)m#O|HS+hi&pc3DaI5I3(X}{AGgeTi^cx>qUhP From 2a798dc1e92ac87ba0ddbba3f16f3904506bf15d Mon Sep 17 00:00:00 2001 From: sssplCodeStar Date: Mon, 11 Mar 2024 23:29:49 +0530 Subject: [PATCH 2/2] docker file added --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..952f7c6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM python:3.11-slim + +WORKDIR /forgery_detection + +RUN apt-get update && apt-get install -y \ + build-essential \ + curl \ + software-properties-common \ + git \ + && rm -rf /var/lib/apt/lists/* + +COPY . . + +RUN pip3 install -r requirements.txt + +EXPOSE 8501 + +HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health + +ENTRYPOINT ["streamlit", "run", "FRONTEND.py", "--server.port=8501", "--server.address=0.0.0.0"] \ No newline at end of file