aloatalpine commited on
Commit
9359c90
1 Parent(s): ce2c471

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -12
app.py CHANGED
@@ -2,8 +2,6 @@ import openai
2
  import streamlit as st
3
  from streamlit_chat import message
4
  import os
5
- from pathlib import Path
6
- import base64
7
 
8
  # Initial page config
9
 
@@ -66,20 +64,10 @@ def main():
66
 
67
  return None
68
 
69
- # Thanks to streamlitopedia for the following code snippet
70
-
71
- def img_to_bytes(img_path):
72
- img_bytes = Path(img_path).read_bytes()
73
- encoded = base64.b64encode(img_bytes).decode()
74
- return encoded
75
-
76
  # sidebar
77
 
78
  def cs_sidebar():
79
 
80
- st.sidebar.markdown('''[<img src='data:image/png;base64,{}' class='img-fluid' width=32 height=32>](https://streamlit.io/)'''.format(img_to_bytes("logomark_website.png")), unsafe_allow_html=True)
81
- st.sidebar.header('Streamlit cheat sheet')
82
-
83
  st.sidebar.markdown('''
84
  <small>Summary of the [docs](https://docs.streamlit.io/en/stable/api.html), as of [Streamlit v1.8.0](https://www.streamlit.io/).</small>
85
  ''', unsafe_allow_html=True)
 
2
  import streamlit as st
3
  from streamlit_chat import message
4
  import os
 
 
5
 
6
  # Initial page config
7
 
 
64
 
65
  return None
66
 
 
 
 
 
 
 
 
67
  # sidebar
68
 
69
  def cs_sidebar():
70
 
 
 
 
71
  st.sidebar.markdown('''
72
  <small>Summary of the [docs](https://docs.streamlit.io/en/stable/api.html), as of [Streamlit v1.8.0](https://www.streamlit.io/).</small>
73
  ''', unsafe_allow_html=True)