Spaces:
Sleeping
Sleeping
mohcineelharras
commited on
Commit
·
76a8b56
1
Parent(s):
624ff3e
added footer
Browse files- app.py +18 -0
- logs/streamlit/front.log +2 -0
- utils/extract_wallet_interactions.py +3 -3
app.py
CHANGED
@@ -597,5 +597,23 @@ if not interactions_df.empty:
|
|
597 |
else:
|
598 |
st.write(f"No wallet interaction data available for {selected_influencer}.")
|
599 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
600 |
#-------------------------------------end ----------------------------------
|
601 |
|
|
|
597 |
else:
|
598 |
st.write(f"No wallet interaction data available for {selected_influencer}.")
|
599 |
|
600 |
+
|
601 |
+
st.markdown("""
|
602 |
+
<div style="text-align: center; margin-top: 20px;">
|
603 |
+
<a href="https://github.com/mohcineelharras/llama-index-docs" target="_blank" style="margin: 10px; display: inline-block;">
|
604 |
+
<img src="https://img.shields.io/badge/Repository-333?logo=github&style=for-the-badge" alt="Repository" style="vertical-align: middle;">
|
605 |
+
</a>
|
606 |
+
<a href="https://www.linkedin.com/in/mohcine-el-harras" target="_blank" style="margin: 10px; display: inline-block;">
|
607 |
+
<img src="https://img.shields.io/badge/-LinkedIn-0077B5?style=for-the-badge&logo=linkedin" alt="LinkedIn" style="vertical-align: middle;">
|
608 |
+
</a>
|
609 |
+
<a href="https://mohcineelharras.github.io" target="_blank" style="margin: 10px; display: inline-block;">
|
610 |
+
<img src="https://img.shields.io/badge/Visit-Portfolio-9cf?style=for-the-badge" alt="GitHub" style="vertical-align: middle;">
|
611 |
+
</a>
|
612 |
+
</div>
|
613 |
+
<div style="text-align: center; margin-top: 20px; color: #666; font-size: 0.85em;">
|
614 |
+
© 2023 Mohcine EL HARRAS
|
615 |
+
</div>
|
616 |
+
""", unsafe_allow_html=True)
|
617 |
+
|
618 |
#-------------------------------------end ----------------------------------
|
619 |
|
logs/streamlit/front.log
CHANGED
@@ -1067,3 +1067,5 @@
|
|
1067 |
2023-11-28 17:57:03,825 [INFO] - Balances uploaded, shape of dataframe is (3, 2)
|
1068 |
2023-11-28 17:57:49,082 [INFO] - Streamlit app has started
|
1069 |
2023-11-28 17:57:49,240 [INFO] - Balances uploaded, shape of dataframe is (3, 2)
|
|
|
|
|
|
1067 |
2023-11-28 17:57:03,825 [INFO] - Balances uploaded, shape of dataframe is (3, 2)
|
1068 |
2023-11-28 17:57:49,082 [INFO] - Streamlit app has started
|
1069 |
2023-11-28 17:57:49,240 [INFO] - Balances uploaded, shape of dataframe is (3, 2)
|
1070 |
+
2023-11-29 15:10:03,506 [INFO] - Streamlit app has started
|
1071 |
+
2023-11-29 15:10:04,026 [INFO] - Balances uploaded, shape of dataframe is (3, 2)
|
utils/extract_wallet_interactions.py
CHANGED
@@ -29,10 +29,10 @@ def get_token_transactions(address, action):
|
|
29 |
|
30 |
def combine_token_transactions(address):
|
31 |
erc20_transactions = get_token_transactions(address, 'tokentx')
|
32 |
-
erc721_transactions = get_token_transactions(address, 'tokennfttx')
|
33 |
-
erc1155_transactions = get_token_transactions(address, 'token1155tx')
|
34 |
|
35 |
-
combined_transactions = erc20_transactions
|
36 |
return combined_transactions
|
37 |
|
38 |
def save_transactions_to_csv(transactions, influencer_name):
|
|
|
29 |
|
30 |
def combine_token_transactions(address):
|
31 |
erc20_transactions = get_token_transactions(address, 'tokentx')
|
32 |
+
#erc721_transactions = get_token_transactions(address, 'tokennfttx')
|
33 |
+
#erc1155_transactions = get_token_transactions(address, 'token1155tx')
|
34 |
|
35 |
+
combined_transactions = erc20_transactions #+ erc721_transactions + erc1155_transactions
|
36 |
return combined_transactions
|
37 |
|
38 |
def save_transactions_to_csv(transactions, influencer_name):
|