freddieyeo commited on
Commit
2597110
·
2 Parent(s): 8071692 e364d2b

Merge branch 'main' of https://huggingface.co/spaces/Yeocoders/Guesssing_game

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. app.py +3 -1
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ .streamlit/secrets.toml
app.py CHANGED
@@ -44,7 +44,8 @@ clear_chat = st.sidebar.button("Reset", type = "primary")
44
  st.sidebar.write("[Instagram](https://www.instagram.com/freddieyeo1/)")
45
 
46
 
47
- URL = "http://localhost:7094/"
 
48
 
49
  full_response = ""
50
  message_placeholder = st.empty()
@@ -94,6 +95,7 @@ def random_response(
94
  'answer': answer,
95
  'difficulty': option.lower(),
96
  'gameSelection': game_selection,
 
97
  }
98
 
99
  request_session = requests.Session()
 
44
  st.sidebar.write("[Instagram](https://www.instagram.com/freddieyeo1/)")
45
 
46
 
47
+ URL = st.secrets["URL"]
48
+ KEY = st.secrets["KEY"]
49
 
50
  full_response = ""
51
  message_placeholder = st.empty()
 
95
  'answer': answer,
96
  'difficulty': option.lower(),
97
  'gameSelection': game_selection,
98
+ 'key': KEY,
99
  }
100
 
101
  request_session = requests.Session()