Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files- .gitattributes +1 -0
- app.py +160 -0
- static/mylogo.png +3 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
backend/static/mylogo.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
frontend/static/mylogo.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
backend/static/mylogo.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
frontend/static/mylogo.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
static/mylogo.png filter=lfs diff=lfs merge=lfs -text
|
app.py
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
|
| 83 |
+
import streamlit as st
|
| 84 |
+
import random
|
| 85 |
+
import time
|
| 86 |
+
import os
|
| 87 |
+
os.environ["STREAMLIT_CONFIG_DIR"] = "/tmp"
|
| 88 |
+
|
| 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="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 |
+
)
|
static/mylogo.png
ADDED
|
Git LFS Details
|