From 51ef81687f9897a6b873e0e97435568a562a9bf3 Mon Sep 17 00:00:00 2001 From: alif_ramadhan Date: Tue, 16 May 2023 13:30:29 +0700 Subject: [PATCH] update: initial boilerplate --- .streamlit/config.toml | 6 ++++++ app.py | 18 ++++++++++++++++ requirements.txt | 47 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 .streamlit/config.toml create mode 100644 app.py create mode 100644 requirements.txt diff --git a/.streamlit/config.toml b/.streamlit/config.toml new file mode 100644 index 0000000..d6fd3b3 --- /dev/null +++ b/.streamlit/config.toml @@ -0,0 +1,6 @@ +[theme] +# primaryColor="#FFFFFF" +backgroundColor="#1F1D2B" +# secondaryBackgroundColor="#262730" +textColor="#FFFFFF" +# font="Calibri" \ No newline at end of file diff --git a/app.py b/app.py new file mode 100644 index 0000000..411a96f --- /dev/null +++ b/app.py @@ -0,0 +1,18 @@ +from random import randint +import streamlit as st + + +st.markdown("

DetectGPT

", unsafe_allow_html=True) +st.markdown("
We are here with AI technology to help you know the quality of your writing and prevent plagiarism
", unsafe_allow_html=True) + +text = st.text_area(label = "", placeholder="Input text here...") +isClick = st.button(label = "Submit") + +# if text != "": +if isClick: + score = randint(1, 100) + if score > 70: + st.error("Terdeteksi Plagiarisme") + else: + st.success("Terdeteksi Original") + st.progress(score) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..7b5067c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,47 @@ +altair==4.0.0 +attrs==23.1.0 +blinker==1.6.2 +cachetools==5.3.0 +certifi==2023.5.7 +charset-normalizer==3.1.0 +click==8.1.3 +colorama==0.4.6 +decorator==5.1.1 +entrypoints==0.4 +gitdb==4.0.10 +GitPython==3.1.31 +idna==3.4 +importlib-metadata==6.6.0 +Jinja2==3.1.2 +jsonschema==4.17.3 +markdown-it-py==2.2.0 +MarkupSafe==2.1.2 +mdurl==0.1.2 +numpy==1.24.3 +packaging==23.1 +pandas==2.0.1 +Pillow==9.5.0 +protobuf==3.20.3 +pyarrow==12.0.0 +pydeck==0.8.1b0 +Pygments==2.15.1 +Pympler==1.0.1 +pyrsistent==0.19.3 +python-dateutil==2.8.2 +pytz==2023.3 +requests==2.30.0 +rich==13.3.5 +semver==3.0.0 +six==1.16.0 +smmap==5.0.0 +streamlit==1.11.0 +toml==0.10.2 +toolz==0.12.0 +tornado==6.3.2 +typing_extensions==4.5.0 +tzdata==2023.3 +tzlocal==5.0.1 +urllib3==2.0.2 +validators==0.20.0 +watchdog==3.0.0 +zipp==3.15.0