Spaces:
Sleeping
Sleeping
Commit
•
a9b5b03
1
Parent(s):
27b036b
Update app.py
Browse files
app.py
CHANGED
@@ -1,123 +1,37 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
<h2>Project Overview</h2>
|
36 |
-
<p>Detailed explanation of the project, its goals, and key functionalities.</p>
|
37 |
-
|
38 |
-
<h2>Installation</h2>
|
39 |
-
<pre><code>
|
40 |
-
# Step-by-step instructions on how to install your project.
|
41 |
-
pip install your-project
|
42 |
-
</code></pre>
|
43 |
-
|
44 |
-
<h2>Usage</h2>
|
45 |
-
<pre><code>
|
46 |
-
# Instructions on how to use your project with code snippets.
|
47 |
-
from your_project import YourModel
|
48 |
-
|
49 |
-
model = YourModel()
|
50 |
-
result = model.predict("Sample input")
|
51 |
-
print(result)
|
52 |
-
</code></pre>
|
53 |
-
|
54 |
-
<h2>Dataset and Model Information</h2>
|
55 |
-
<p>Information about the dataset and model architecture.</p>
|
56 |
-
|
57 |
-
<h2>Results and Performance</h2>
|
58 |
-
<p>Metrics, visualizations, and comparisons showcasing the performance of your model.</p>
|
59 |
-
|
60 |
-
<h2>How to Contribute</h2>
|
61 |
-
<p>Guidelines for contributing to your project.</p>
|
62 |
-
|
63 |
-
<h2>License</h2>
|
64 |
-
<p>The license for your project.</p>
|
65 |
-
|
66 |
-
<h2>Citation</h2>
|
67 |
-
<p>How to cite your work if applicable.</p>
|
68 |
-
</body>
|
69 |
-
</html>
|
70 |
-
"""
|
71 |
-
|
72 |
-
@app.route('/')
|
73 |
-
def home():
|
74 |
-
return render_template_string(intro_content)
|
75 |
-
|
76 |
-
if __name__ == '__main__':
|
77 |
-
app.run(debug=True)
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
# import streamlit as st
|
89 |
-
# import pandas as pd
|
90 |
-
# import joblib
|
91 |
-
|
92 |
-
# import streamlit as st
|
93 |
-
# import eda
|
94 |
-
# import models
|
95 |
-
|
96 |
-
|
97 |
-
# page = st.sidebar.selectbox(label='Select Page:', options=['Home Page', 'Exploration Data Analysis', 'Model Prediksi'])
|
98 |
-
|
99 |
-
# if page == 'Home Page':
|
100 |
-
# st.header('Welcome Page')
|
101 |
-
# st.write('')
|
102 |
-
# st.write('Milestone 2')
|
103 |
-
# st.write('Nama : Ryan Trisnadi')
|
104 |
-
# st.write('Batch : ')
|
105 |
-
# st.write('Tujuan Milestone : Prediksi harga rumah di Melbourne')
|
106 |
-
# st.write('')
|
107 |
-
# st.caption('Silahkan pilih menu lain di Select Box pada sebelah kiri layar anda untuk memulai!')
|
108 |
-
# st.write('')
|
109 |
-
# st.write('')
|
110 |
-
# with st.expander("Latar Belakang"):
|
111 |
-
# st.caption('Proyek ini dibuat untuk mengilustrasikan dan memproyek kedepan harga rumah di kota Melbourne, Australia. Kita akan menguji dengan Linear regression
|
112 |
-
# dengan beberapa test algorithma seperti SVM, Decision Tree, Random Forest, dan Boosting. Oleh karena itu, kita akan memilih variable "price" atau harga
|
113 |
-
# rumah sebagai target. Dengan mengunakan Pipeline di setiap proses dari Feature Engineering, kita bisa membuat proses lebih efisien dan mencegah data leak.
|
114 |
-
# Dataset tersebut memiliki beberapa faktor seperti alamat, kode pos, harga rumah, lokasi lingkungan, kamar, kamar mandi, garasi, besar tanah, umur dan
|
115 |
-
# lain-lain'.)
|
116 |
-
|
117 |
-
# elif page == 'Exploration Data Analysis':
|
118 |
-
# eda.run()
|
119 |
-
# else:
|
120 |
-
# models.run()
|
121 |
|
122 |
|
123 |
|
|
|
1 |
+
|
2 |
+
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
import streamlit as st
|
12 |
+
import pandas as pd
|
13 |
+
import joblib
|
14 |
+
|
15 |
+
import streamlit as st
|
16 |
+
import eda
|
17 |
+
import models
|
18 |
+
|
19 |
+
|
20 |
+
page = st.sidebar.selectbox(label='Select Page:', options=['Home Page', 'Exploration Data Analysis', 'Model Prediksi'])
|
21 |
+
|
22 |
+
if page == 'Home Page':
|
23 |
+
st.header('Welcome Page')
|
24 |
+
st.write('')
|
25 |
+
st.write('GC7')
|
26 |
+
st.write('Nama : Ryan Trisnadi')
|
27 |
+
st.write('Batch : ')
|
28 |
+
st.write('Tujuan GC&: Prediksi harga sentiment review di IMDB')
|
29 |
+
st.write('')
|
30 |
+
st.caption('Proyek ini dibuat untuk mengevaluasi konsep Natural Language Processing (NLP) dengan dataset dari Kaggle tentang IMDB movie ratings.
|
31 |
+
Kaggle dataset tersebut memiliki 2 kolom: "sentiment" dan "review" yang terdiri dari banyak string values yang perlu di data clean dan
|
32 |
+
dinterpretasi jadi data berguna. Model LSTM dan GRU akan gunakan untuk prediksi kata-kata apa saja yang akan tertampil terbanyak!')
|
33 |
+
st.write('')
|
34 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
|
37 |
|