mikaelbhai commited on
Commit
4389221
·
1 Parent(s): 1be5dde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,12 +5,12 @@ openai.api_key = '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' # your ap
5
  openai.Model.list()
6
 
7
  prompt = "joe mama"
8
- def GPTBhai(user_input):
9
  messages.append({"role": "user", "content": user_input})
10
  response = prompt
11
 
12
 
13
- ChatGPT_reply = openai.Image.create(
14
  prompt=prompt
15
  n=2,
16
  size="1024x1024"
@@ -18,5 +18,5 @@ def GPTBhai(user_input):
18
  return ChatGPT_reply
19
 
20
 
21
- iface = gr.Interface(fn=GPTBhai, inputs = "text", outputs = "text", title = "bhAI")
22
  iface.launch()
 
5
  openai.Model.list()
6
 
7
  prompt = "joe mama"
8
+ def DALLE(user_input):
9
  messages.append({"role": "user", "content": user_input})
10
  response = prompt
11
 
12
 
13
+ DALLE_reply = openai.Image.create(
14
  prompt=prompt
15
  n=2,
16
  size="1024x1024"
 
18
  return ChatGPT_reply
19
 
20
 
21
+ iface = gr.Interface(fn=DALLE, inputs = "text", outputs = "image", title = "bhAI")
22
  iface.launch()