po5302006 commited on
Commit
acf3424
1 Parent(s): b1fbf68

updated title format

Browse files
Files changed (2) hide show
  1. Home.py +5 -3
  2. module/__custom__.py +4 -4
Home.py CHANGED
@@ -5,9 +5,11 @@ import random
5
  import time
6
  from module.__custom__ import *
7
  from streamlit_extras.switch_page_button import switch_page
8
-
9
  df = pd.read_csv('./data/cosine.csv')
10
 
 
 
 
11
 
12
  # Openai API Key
13
  import openai
@@ -29,7 +31,7 @@ def read_api_key_from_secrets(file_path='secrets.json'):
29
 
30
  # Example usage
31
  try:
32
-
33
  openai.api_key = os.environ['key']
34
  os.environ['OPENAI_API_KEY'] = os.environ['key']
35
  print(f"OpenAI API Key Found")
@@ -185,7 +187,7 @@ post_prompt = """
185
  # If a user asks for a specific number of games, and you cannot provide that, answer with what games you found and explain why you could not find others.
186
 
187
  st.header("🕹️ GameInsightify")
188
- st.title("Your Personal :green[Game Recommender]")
189
  st.image('./data/img/demoGIF.gif')
190
 
191
  # Description for users
 
5
  import time
6
  from module.__custom__ import *
7
  from streamlit_extras.switch_page_button import switch_page
 
8
  df = pd.read_csv('./data/cosine.csv')
9
 
10
+ # with open( ".\css\style.css" ) as css:
11
+ # st.markdown( f'<style>{css.read()}</style>' , unsafe_allow_html= True)
12
+
13
 
14
  # Openai API Key
15
  import openai
 
31
 
32
  # Example usage
33
  try:
34
+ # key = read_api_key_from_secrets()
35
  openai.api_key = os.environ['key']
36
  os.environ['OPENAI_API_KEY'] = os.environ['key']
37
  print(f"OpenAI API Key Found")
 
187
  # If a user asks for a specific number of games, and you cannot provide that, answer with what games you found and explain why you could not find others.
188
 
189
  st.header("🕹️ GameInsightify")
190
+ st.header("Your Personal :green[Game Recommender]")
191
  st.image('./data/img/demoGIF.gif')
192
 
193
  # Description for users
module/__custom__.py CHANGED
@@ -123,7 +123,7 @@ def rec_dfbox():
123
  st.dataframe(df_names[0:len(rec_games)])
124
  # Overloaded with argument of names
125
  def home_dfbox(rec_games):
126
- title = f"1.1 :blue[Recommended] by :green[GameInsightify]"
127
  if len(rec_games) > 0:
128
  with st.sidebar:
129
  df_names = pd.DataFrame(rec_games, columns=['gamename'])
@@ -321,7 +321,7 @@ def exec_page(emoji, theme, page_genres):
321
 
322
  # Header
323
  st.header(emoji)
324
- st.title(f"Customized Plot on :blue[{theme}]")
325
 
326
  ##### FILTER #####
327
  # Featuer for both axis
@@ -379,7 +379,7 @@ def exec_page_home(theme):
379
 
380
  # Header
381
  st.header("👋")
382
- st.title("Customized Plot on :blue[General Features]")
383
 
384
  ##### FILTER #####
385
  # Featuer for both axis
@@ -453,7 +453,7 @@ def exec_page_pub(emoji, theme, main_genre):
453
 
454
  # Header
455
  st.header(emoji)
456
- st.title(f"Customized Plot on :blue[{theme}]")
457
 
458
  ##### FILTER #####
459
  # Featuer for both axis
 
123
  st.dataframe(df_names[0:len(rec_games)])
124
  # Overloaded with argument of names
125
  def home_dfbox(rec_games):
126
+ title = f":blue[Recommended] by :green[GameInsightify]"
127
  if len(rec_games) > 0:
128
  with st.sidebar:
129
  df_names = pd.DataFrame(rec_games, columns=['gamename'])
 
321
 
322
  # Header
323
  st.header(emoji)
324
+ st.header(f"Customized Plot on :blue[{theme}]")
325
 
326
  ##### FILTER #####
327
  # Featuer for both axis
 
379
 
380
  # Header
381
  st.header("👋")
382
+ st.header("Customized Plot on :blue[General Features]")
383
 
384
  ##### FILTER #####
385
  # Featuer for both axis
 
453
 
454
  # Header
455
  st.header(emoji)
456
+ st.header(f"Customized Plot on :blue[{theme}]")
457
 
458
  ##### FILTER #####
459
  # Featuer for both axis