Praveen998 commited on
Commit
58d3709
·
1 Parent(s): a1fcc21

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +19 -96
app.py CHANGED
@@ -26,42 +26,15 @@ def on_btn_click():
26
 
27
 
28
  def main():
29
- st.write("Hello, world!")
30
- st.header(" Al Generated this app - spotify recommendations")
31
- st.subheader(" this application contains the auto generated layout")
32
- (
33
- col1,
34
- col2,
35
- ) = st.columns(2)
36
- with col1:
37
- st.write("Hello, world!")
38
- with col2:
39
- option = st.selectbox(
40
- " gender / male / female", [" gender ", " male ", " female"]
41
- )
42
- (
43
- col1,
44
- col2,
45
- ) = st.columns(2)
46
- with col1:
47
- value = st.slider(
48
- " max predictions", min_value=0, max_value=100, value=50, key=39
49
- )
50
- with col2:
51
- value = st.slider(
52
- " num categories", min_value=0, max_value=100, value=50, key=81
53
- )
54
- (
55
- col1,
56
- col2,
57
- ) = st.columns(2)
58
- with col1:
59
- option = st.radio("Choose an option:", ["Option 1", "Option 2", "Option 3"])
60
- with col2:
61
- if st.checkbox("Check me"):
62
- st.write("Checkbox checked!")
63
- if st.button(" generate recommendations"):
64
  st.write("Button clicked!")
 
65
  (
66
  col1,
67
  col2,
@@ -75,6 +48,14 @@ def main():
75
  }
76
  )
77
  with col2:
 
 
 
 
 
 
 
 
78
  st.line_chart(
79
  pd.DataFrame(
80
  {
@@ -90,72 +71,14 @@ def main():
90
  }
91
  )
92
  )
93
- (
94
- col1,
95
- col2,
96
- ) = st.columns(2)
97
- with col1:
98
  data = pd.DataFrame(
99
  {"X": [1, 2, 3, 4, 5], "Y1": [10, 16, 8, 14, 12], "Y2": [5, 8, 3, 6, 7]}
100
  )
101
  st.area_chart(data)
102
- with col2:
103
- st.bar_chart(
104
- pd.DataFrame(np.random.randn(20, 3), columns=["Apple", "Banana", "Cherry"])
105
- )
106
- (
107
- col1,
108
- col2,
109
- ) = st.columns(2)
110
- with col1:
111
- st.write("Hello, world!")
112
- with col2:
113
- df = px.data.gapminder().query("year == 2007").query("continent == 'Americas'")
114
- fig = px.pie(
115
- df,
116
- values="pop",
117
- names="country",
118
- title="Population of American continent",
119
- hover_data=["lifeExp"],
120
- labels={"lifeExp": "life expectancy"},
121
- )
122
- fig.update_traces(textposition="inside", textinfo="percent+label")
123
- st.plotly_chart(fig)
124
- source = vds.cars()
125
- chart = {
126
- "mark": "point",
127
- "encoding": {
128
- "x": {"field": "Horsepower", "type": "quantitative"},
129
- "y": {"field": "Miles_per_Gallon", "type": "quantitative"},
130
- "color": {"field": "Origin", "type": "nominal"},
131
- "shape": {"field": "Origin", "type": "nominal"},
132
- },
133
- }
134
- tab1, tab2 = st.tabs(["Streamlit theme (default)", "Vega-Lite native theme"])
135
- with tab1:
136
- st.vega_lite_chart(source, chart, theme="streamlit", use_container_width=True)
137
- with tab2:
138
- st.vega_lite_chart(source, chart, theme=None, use_container_width=True)
139
- (
140
- col1,
141
- col2,
142
- ) = st.columns(2)
143
- with col1:
144
- st.video("https://www.youtube.com/watch?v=50hVvC7gMR8&t=5s", format="video/mp4")
145
- with col2:
146
- st.image(
147
- "https://assets-global.website-files.com/59e16042ec229e00016d3a66/6441d5f76d21e1e4dee9ffa2_Gen%20AI%20blog_Blog%20hero.png",
148
- caption="Image Caption",
149
- )
150
- st.plotly_chart(
151
- ff.create_distplot(
152
- [np.random.randn(200) - 2, np.random.randn(200), np.random.randn(200) + 2],
153
- ["Negative Shift", "Normal", "Positive Shift"],
154
- bin_size=[0.1, 0.25, 0.5],
155
- ),
156
- use_container_width=True,
157
  )
158
- st.header(" auto generated by sketch2streamiit")
159
 
160
 
161
  if __name__ == "__main__":
 
26
 
27
 
28
  def main():
29
+ st.title(" Stock Forecasting App")
30
+ uploaded_file = st.file_uploader("Choose a file", type=["jpg", "png", "mp3"])
31
+ value = st.slider(
32
+ " Select Horizon Period", min_value=0, max_value=100, value=50, key=69
33
+ )
34
+ value = st.slider(" Folds", min_value=0, max_value=100, value=50, key=17)
35
+ if st.button(" start"):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  st.write("Button clicked!")
37
+ st.title(" Training")
38
  (
39
  col1,
40
  col2,
 
48
  }
49
  )
50
  with col2:
51
+ data = {"key": "value", "name": "John Doe", "age": 30}
52
+ st.json(data)
53
+ st.title(" Forecast")
54
+ (
55
+ col1,
56
+ col2,
57
+ ) = st.columns(2)
58
+ with col1:
59
  st.line_chart(
60
  pd.DataFrame(
61
  {
 
71
  }
72
  )
73
  )
74
+ with col2:
 
 
 
 
75
  data = pd.DataFrame(
76
  {"X": [1, 2, 3, 4, 5], "Y1": [10, 16, 8, 14, 12], "Y2": [5, 8, 3, 6, 7]}
77
  )
78
  st.area_chart(data)
79
+ st.bar_chart(
80
+ pd.DataFrame(np.random.randn(20, 3), columns=["Apple", "Banana", "Cherry"])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  )
 
82
 
83
 
84
  if __name__ == "__main__":