dipta007 commited on
Commit
d039555
1 Parent(s): 7c85284

added config

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -6,11 +6,19 @@ from upload import upload_file, get_file
6
 
7
  share_keys = ["messages", "cost"]
8
 
9
-
10
- st.title("ChatGPT with Vision")
11
-
12
  client = OpenAI(api_key=st.secrets["OPENAI_KEY"])
13
 
 
 
 
 
 
 
 
 
 
 
 
14
  if "messages" not in st.session_state:
15
  st.session_state.messages = []
16
  if "uploader_key" not in st.session_state:
@@ -48,6 +56,7 @@ def share():
48
  st.success(f"Share URL: {url}")
49
 
50
  with st.sidebar:
 
51
  if st.button("Share", use_container_width=True):
52
  share()
53
 
 
6
 
7
  share_keys = ["messages", "cost"]
8
 
 
 
 
9
  client = OpenAI(api_key=st.secrets["OPENAI_KEY"])
10
 
11
+ st.set_page_config(
12
+ page_title="ChatGPT with Vision",
13
+ page_icon="🤖",
14
+ menu_items={
15
+ "About": """
16
+ *ChatGPT with Vision* is a chat interface that uses OpenAI's API to generate responses to your prompts.
17
+ *---- Developed by **[Shubhashis Roy Dipta](https://roydipta.com)** ----*
18
+ """
19
+ }
20
+ )
21
+
22
  if "messages" not in st.session_state:
23
  st.session_state.messages = []
24
  if "uploader_key" not in st.session_state:
 
56
  st.success(f"Share URL: {url}")
57
 
58
  with st.sidebar:
59
+ st.title(":blue[ChatGPT with Vision]")
60
  if st.button("Share", use_container_width=True):
61
  share()
62