Spaces:
Sleeping
Sleeping
Commit
·
e9b5c30
1
Parent(s):
89c2209
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from freeGPT import Client
|
3 |
|
4 |
-
@st.
|
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)
|