Spaces:
Runtime error
Runtime error
Commit
·
3ea73d3
1
Parent(s):
cbe5695
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ openai.api_key = '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' # your ap
|
|
10 |
|
11 |
def DALLE(user_input):
|
12 |
prompt = user_input
|
13 |
-
|
14 |
|
15 |
# Create the DALL-E image using the OpenAI API
|
16 |
data = {
|
@@ -33,7 +33,3 @@ def DALLE(user_input):
|
|
33 |
img_arr = np.array(img)
|
34 |
|
35 |
return img_arr
|
36 |
-
|
37 |
-
iface = gr.Interface(fn=DALLE, inputs="text", outputs="image", title="bhAI")
|
38 |
-
iface.launch()
|
39 |
-
|
|
|
10 |
|
11 |
def DALLE(user_input):
|
12 |
prompt = user_input
|
13 |
+
print("Prompt:", prompt)
|
14 |
|
15 |
# Create the DALL-E image using the OpenAI API
|
16 |
data = {
|
|
|
33 |
img_arr = np.array(img)
|
34 |
|
35 |
return img_arr
|
|
|
|
|
|
|
|