Umerpy commited on
Commit
77ee952
·
verified ·
1 Parent(s): e196d75

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -160
app.py DELETED
@@ -1,160 +0,0 @@
1
- # import streamlit as st
2
- # import random
3
- # import time
4
-
5
- # st.set_page_config(page_title="Uzair Forex Club", layout="centered")
6
-
7
- # # --- Header ---
8
- # st.markdown(
9
- # """
10
- # <div style="text-align:center;">
11
- # <div style="width:100px;height:100px;border-radius:50%;
12
- # background:linear-gradient(to bottom right,#dc2626,#7f1d1d);
13
- # display:flex;align-items:center;justify-content:center;
14
- # margin:auto;border:4px solid white;overflow:hidden;">
15
- # <img src="http://127.0.0.1:8000/static/mylogo.png"
16
- # style="width:90%;height:90%;object-fit:cover;border-radius:50%;" />
17
- # </div>
18
- # <h1 style="
19
- # color:#FFD700; /* gold color */
20
- # font-family:'Poppins', sans-serif;
21
- # font-size:40px;
22
- # letter-spacing:5px;
23
- # margin-top:10px;
24
- # text-shadow:2px 2px 6px rgba(0,0,0,0.5);
25
- # ">
26
- # Uzair Forex Club
27
- # </h1>
28
- # </div>
29
- # """,
30
- # unsafe_allow_html=True
31
- # )
32
-
33
- # # --- Platform Selector ---
34
- # platforms = ['QUOTEX', 'POCKET OPTION', 'BINOMO', 'OLYMP', 'IQ OPTION', 'EXPERT OPTION']
35
- # platform = st.selectbox("📱 Select Platform", platforms)
36
-
37
- # # --- Currency Pair Selector ---
38
- # currency_pairs = [
39
- # 'USD/BRL (OTC)', 'USD/BRL (CTC)', 'USD/ARS (OTC)', 'USD/DZD (OTC)',
40
- # 'USD/COP (OTC)', 'CAD/CHF (OTC)', 'USD/BDT (OTC)', 'USD/PKR (OTC)'
41
- # ]
42
- # currency = st.selectbox("💱 Select Currency Pair", currency_pairs)
43
-
44
- # # --- Timeframe Selector ---
45
- # timeframes = ['5s', '10s', '15s', '30s', '1m', '2m','5m']
46
- # timeframe = st.selectbox("⏱ Select Timeframe", timeframes)
47
-
48
- # # --- Signal Generation ---
49
- # if st.button("🚀 GET SIGNAL"):
50
- # with st.spinner("Generating signal..."):
51
- # time.sleep(1)
52
- # signal = random.choice(["BUY", "SELL"])
53
- # countdown = random.randint(10, 30)
54
- # st.success(f"**Signal:** {signal}")
55
-
56
- # placeholder = st.empty() # Create an area to update countdown
57
-
58
- # # Countdown loop
59
- # for i in range(countdown, 0, -1):
60
- # placeholder.markdown(
61
- # f"<div style='text-align:center;color:#00FFFF;font-size:18px;'>Next in <b>{i}</b> seconds ⏳</div>",
62
- # unsafe_allow_html=True
63
- # )
64
- # time.sleep(1)
65
-
66
- # placeholder.markdown(
67
- # "<div style='text-align:center;color:gray;font-size:16px;'>Next signal available now ✅</div>",
68
- # unsafe_allow_html=True
69
- # )
70
-
71
- # # Show signal
72
- # if signal == "BUY":
73
- # st.markdown(
74
- # "<div style='color:lime;font-size:40px;text-align:center;font-weight:bold;'>BUY 🔼</div>",
75
- # unsafe_allow_html=True,
76
- # )
77
- # else:
78
- # st.markdown(
79
- # "<div style='color:red;font-size:40px;text-align:center;font-weight:bold;'>SELL 🔽</div>",
80
- # unsafe_allow_html=True,
81
- # )
82
- import streamlit as st
83
- import random
84
- import time
85
- import os
86
- os.environ["STREAMLIT_CONFIG_DIR"] = "/tmp"
87
-
88
- st.markdown("<h3 style='color:yellow;'>Header Test Working ✅</h3>", unsafe_allow_html=True)
89
-
90
- st.set_page_config(page_title="UZAIR FOREZ CLUB", layout="centered")
91
-
92
- st.markdown(
93
- """
94
- <div style="text-align:center;">
95
- <div style="width:100px;height:100px;border-radius:50%;
96
- background:linear-gradient(to bottom right,#dc2626,#7f1d1d);
97
- display:flex;align-items:center;justify-content:center;
98
- margin:auto;border:4px solid white;overflow:hidden;">
99
- <img src="frontend/static/mylogo.png"
100
- style="width:90%;height:90%;object-fit:cover;border-radius:50%;" />
101
- </div>
102
- <h1 style="
103
- color:#FFD700; /* gold color */
104
- font-family:'Poppins', sans-serif;
105
- font-size:40px;
106
- letter-spacing:5px;
107
- margin-top:10px;
108
- text-shadow:2px 2px 6px rgba(0,0,0,0.5);
109
- ">
110
- UZAIR FOREX CLUB
111
- </h1>
112
- </div>
113
- """,
114
- unsafe_allow_html=True
115
- )
116
-
117
- platforms = ['QUOTEX', 'POCKET OPTION', 'BINOMO', 'OLYMP', 'IQ OPTION', 'EXPERT OPTION']
118
- currency_pairs = [
119
- 'USD/BRL (OTC)', 'USD/BRL (CTC)', 'USD/ARS (OTC)', 'USD/DZD (OTC)',
120
- 'USD/COP (OTC)', 'CAD/CHF (OTC)', 'USD/BDT (OTC)', 'USD/PKR (OTC)'
121
- ]
122
- timeframes = ['5s', '10s', '15s', '30s', '1m', '2m', '5m']
123
-
124
- platform = st.selectbox("📱 Select Platform", platforms)
125
- currency = st.selectbox("💱 Select Currency Pair", currency_pairs)
126
- timeframe = st.selectbox("⏱ Select Timeframe", timeframes)
127
-
128
- if st.button("🚀 GET SIGNAL"):
129
- # Show spinner for a short time before signal
130
- with st.spinner("🔍 Generating signal... Please wait"):
131
- time.sleep(1.5)
132
- signal = random.choice(["BUY", "SELL"])
133
- countdown = random.randint(10, 30)
134
-
135
- st.success(f"✅ Signal generated: **{signal}**")
136
-
137
- # Countdown display
138
- placeholder = st.empty()
139
- for i in range(countdown, 0, -1):
140
- placeholder.markdown(
141
- f"<div style='text-align:center;color:#00FFFF;font-size:18px;'>Next in <b>{i}</b> seconds ⏳</div>",
142
- unsafe_allow_html=True
143
- )
144
- time.sleep(1)
145
- placeholder.markdown(
146
- "<div style='text-align:center;color:gray;font-size:16px;'>Next signal available now ✅</div>",
147
- unsafe_allow_html=True
148
- )
149
-
150
- # Show signal
151
- if signal == "BUY":
152
- st.markdown(
153
- "<div style='color:lime;font-size:40px;text-align:center;font-weight:bold;'>BUY 🔼</div>",
154
- unsafe_allow_html=True,
155
- )
156
- else:
157
- st.markdown(
158
- "<div style='color:red;font-size:40px;text-align:center;font-weight:bold;'>SELL 🔽</div>",
159
- unsafe_allow_html=True,
160
- )