Upload 9 files
Browse files- ADA-USD.jpg +0 -0
- BNB-USD.jpg +0 -0
- BTC-USD.jpg +0 -0
- DOGE-USD.jpg +0 -0
- DOT-USD.jpg +0 -0
- ETH-USD.jpg +0 -0
- SOL-USD.jpg +0 -0
- XRP-USD.jpg +0 -0
- app.py +62 -0
ADA-USD.jpg
ADDED
BNB-USD.jpg
ADDED
BTC-USD.jpg
ADDED
DOGE-USD.jpg
ADDED
DOT-USD.jpg
ADDED
ETH-USD.jpg
ADDED
SOL-USD.jpg
ADDED
XRP-USD.jpg
ADDED
app.py
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
os.system('pip install streamlit_analytics')
|
4 |
+
|
5 |
+
import streamlit as st
|
6 |
+
import streamlit_analytics
|
7 |
+
|
8 |
+
try:
|
9 |
+
streamlit_analytics.track(load_from_json="demand.json")
|
10 |
+
except:
|
11 |
+
pass
|
12 |
+
|
13 |
+
# Tickers to choose from
|
14 |
+
# Updated crypto tickers
|
15 |
+
tickers = ['BTC-USD', 'ETH-USD', 'BNB-USD', 'XRP-USD', 'ADA-USD', 'DOT-USD', 'DOGE-USD', 'SOL-USD', 'DOT-USD']
|
16 |
+
|
17 |
+
# Image options for each crypto ticker
|
18 |
+
image_options = {
|
19 |
+
'BTC-USD': 'BTC-USD.jpg',
|
20 |
+
'ETH-USD': 'ETH-USD.jpg',
|
21 |
+
'BNB-USD': 'BNB-USD.jpg',
|
22 |
+
'XRP-USD': 'XRP-USD.jpg',
|
23 |
+
'ADA-USD': 'ADA-USD.jpg',
|
24 |
+
'DOT-USD': 'DOT-USD.jpg',
|
25 |
+
'DOGE-USD': 'DOGE-USD.jpg',
|
26 |
+
'SOL-USD': 'SOL-USD.jpg',
|
27 |
+
'DOT-USD': 'DOT-USD.jpg',
|
28 |
+
}
|
29 |
+
|
30 |
+
# Crypto names for each ticker
|
31 |
+
stock_names = {
|
32 |
+
'BTC-USD': 'Bitcoin',
|
33 |
+
'ETH-USD': 'Ethereum',
|
34 |
+
'BNB-USD': 'Binance Coin',
|
35 |
+
'XRP-USD': 'XRP',
|
36 |
+
'ADA-USD': 'Cardano',
|
37 |
+
'DOT-USD': 'Polkadot',
|
38 |
+
'DOGE-USD': 'Dogecoin',
|
39 |
+
'SOL-USD': 'Solana',
|
40 |
+
'DOT-USD': 'Polkadot',
|
41 |
+
}
|
42 |
+
|
43 |
+
|
44 |
+
st.title("Crypto Forecaster")
|
45 |
+
|
46 |
+
# Create a dropdown to select a ticker
|
47 |
+
with streamlit_analytics.track(save_to_json="demand.json"):
|
48 |
+
selected_ticker = st.selectbox("Select a ticker:", tickers)
|
49 |
+
|
50 |
+
# Display the image for the selected ticker
|
51 |
+
if selected_ticker:
|
52 |
+
image_path = image_options[selected_ticker]
|
53 |
+
image = st.image(image_path)
|
54 |
+
|
55 |
+
# Display the stock name for the selected ticker
|
56 |
+
stock_name = stock_names[selected_ticker]
|
57 |
+
st.write(f"Crypto name: {stock_name}")
|
58 |
+
|
59 |
+
st.markdown(":warning: The content of this website is for educational purposes and is not a financial advice")
|
60 |
+
|
61 |
+
st.markdown(":information_source: This model has been trained on the past 6 years of data until November 22nd, 2023 for each of the selected stocks. For a more comprehensive analysis with a different date range, access to thousands of stocks, hundreds of cryptocurrencies, and more up-to-date predictions, please visit our website: https://crypto.quu.fr")
|
62 |
+
|