JuiKuang commited on
Commit
15f0124
·
verified ·
1 Parent(s): 585adbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -42,8 +42,7 @@ def response(message, history):
42
  n=1, # 生成一張圖片
43
  size="1024x1024" # 圖片大小
44
  )
45
- image_url = response['data'][0]['url']
46
- return image_url
47
 
48
  # 創建 Gradio 界面
49
  iface = gr.Interface(
 
42
  n=1, # 生成一張圖片
43
  size="1024x1024" # 圖片大小
44
  )
45
+
 
46
 
47
  # 創建 Gradio 界面
48
  iface = gr.Interface(