Spaces:
Running
Running
jeremyLE-Ekimetrics
commited on
Commit
·
29f8a5d
1
Parent(s):
0d6f308
Update main.py
Browse files
main.py
CHANGED
@@ -10,7 +10,7 @@ import streamlit as st
|
|
10 |
from PIL import Image
|
11 |
from diffusers import AutoPipelineForText2Image
|
12 |
import random
|
13 |
-
@st.cache_data(ttl=
|
14 |
def get_prompt_to_guess():
|
15 |
random_prompt = ["tree", "cat", "dog", "consultant", "artificial intelligence", "beauty", "immeuble", "plage", "cyborg", "futuristic"]
|
16 |
response = client.chat.completions.create(
|
|
|
10 |
from PIL import Image
|
11 |
from diffusers import AutoPipelineForText2Image
|
12 |
import random
|
13 |
+
@st.cache_data(ttl=3600)
|
14 |
def get_prompt_to_guess():
|
15 |
random_prompt = ["tree", "cat", "dog", "consultant", "artificial intelligence", "beauty", "immeuble", "plage", "cyborg", "futuristic"]
|
16 |
response = client.chat.completions.create(
|