Kvikontent commited on
Commit
e9b5c30
·
1 Parent(s): 89c2209

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import streamlit as st
2
  from freeGPT import Client
3
 
4
- @st.cache(ttl=3600)
5
  def get_response(user_input):
6
  try:
7
  response = client.create_completion("gpt3", user_input)
 
1
  import streamlit as st
2
  from freeGPT import Client
3
 
4
+ @st.cache_data(ttl=3600)
5
  def get_response(user_input):
6
  try:
7
  response = client.create_completion("gpt3", user_input)