-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e03aeb
commit 7cbbc6d
Showing
7 changed files
with
54 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,10 @@ | ||
import streamlit as st | ||
|
||
laptop_config = { | ||
'Company': ['Apple', 'Best Notebooks', 'Microsoft', 'GIGABYTE', 'Panasonic', 'Samsung', 'LG', 'MSI', | ||
'Asus', 'Acer', 'HP', 'Lenovo', | ||
'Dell'], | ||
'CPU': ['i5', 'i7', 'Ryzen 5', 'Ryzen 7'], | ||
'RAM': ['8GB', '16GB', '32GB'], | ||
'GPU': ['Integrated', 'NVIDIA GTX', 'NVIDIA RTX', 'AMD Radeon'], | ||
'Storage': ['256GB SSD', '512GB SSD', '1TB HDD', '1TB SSD'] | ||
} | ||
import sys | ||
import os | ||
|
||
st.title('Are You Sure Prediction') | ||
path = os.path.abspath(os.path.dirname(__file__)) | ||
sys.path.insert(0, path) | ||
from src.app.app import gui_app | ||
|
||
st.button("Button thoi :)))") | ||
|
||
st.caption("#fromhelaricawithluv") | ||
|
||
st.checkbox("I am sure vailon!") | ||
|
||
st.code('''def answer_tqk(question: str) | ||
if question == "Are you sure?": | ||
print("I am sure vailon")''') | ||
|
||
company = st.selectbox('Brand', laptop_config['Company']) | ||
cpu = st.selectbox('CPU', laptop_config['CPU']) | ||
# ram = st.selectbox('RAM', laptop_config['RAM']) | ||
|
||
ram = st.select_slider("RAM", options=['4GB', '8GB', '12GB', '16GB', '32GB', '64GB']) | ||
gpu = st.selectbox('GPU', laptop_config['GPU']) | ||
storage = st.selectbox('Storage', laptop_config['Storage']) | ||
|
||
def predict_price(company, cpu, ram, gpu, storage): | ||
|
||
return 1500000000 | ||
|
||
|
||
if st.button('Prediction'): | ||
predicted_price = predict_price(company, cpu, ram, gpu, storage) | ||
|
||
st.success(f'{predicted_price} USD') | ||
|
||
st.camera_input('Camera nek') | ||
|
||
st.download_button("Download Button", data="main.py") | ||
st.code('''st.download_button("Download Button", data="str") | ||
# data la string, khi download ve se thanh file txt chua doan string do''') | ||
|
||
with st.form("This is form"): | ||
st.write("Ben trong form nek") | ||
|
||
st.slider("Slider nek", 15, 20) | ||
|
||
st.checkbox("Checkbox nek") | ||
|
||
st.form_submit_button("Submit") | ||
if __name__=='__main__': | ||
gui_app() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
pandas | ||
numpy | ||
matplotlib | ||
pickle | ||
sklearn | ||
streamlit | ||
seaborn | ||
fuzzywuzzy |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters