Spaces:
Sleeping
Sleeping
Update app.py
#3
by
zee2221
- opened
app.py
CHANGED
@@ -633,10 +633,10 @@ openai.api_key = st.secrets["OPENAI_KEY"]
|
|
633 |
def openai_response(PROMPT):
|
634 |
response = openai.Image.create(
|
635 |
prompt=PROMPT,
|
636 |
-
n=
|
637 |
size="256x256",
|
638 |
)
|
639 |
-
return response["data"][0]["
|
640 |
|
641 |
st.title("Hi! :red[HyperBot] here!!🤖⭐️")
|
642 |
st.title("Go on ask me anything!!")
|
|
|
633 |
def openai_response(PROMPT):
|
634 |
response = openai.Image.create(
|
635 |
prompt=PROMPT,
|
636 |
+
n=4,
|
637 |
size="256x256",
|
638 |
)
|
639 |
+
return response["data"][0]["urls"]
|
640 |
|
641 |
st.title("Hi! :red[HyperBot] here!!🤖⭐️")
|
642 |
st.title("Go on ask me anything!!")
|