Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,23 +1,3 @@
|
|
1 |
-
# -*- coding: utf-8 -*-
|
2 |
-
"""【3種用】dall-e-3.ipynb
|
3 |
-
|
4 |
-
Automatically generated by Colaboratory.
|
5 |
-
|
6 |
-
Original file is located at
|
7 |
-
https://colab.research.google.com/drive/1_t-vIP8Q49XVOKPgUYrBg2_b6EymJt_p
|
8 |
-
"""
|
9 |
-
|
10 |
-
!pip install openai
|
11 |
-
!pip install gradio
|
12 |
-
|
13 |
-
# from openai import OpenAI
|
14 |
-
import os
|
15 |
-
from google.colab import userdata
|
16 |
-
|
17 |
-
os.environ["TEST_API_KEY"] = userdata.get('OPENAI_KEY')
|
18 |
-
|
19 |
-
# client = OpenAI()
|
20 |
-
|
21 |
import os
|
22 |
from openai import OpenAI, BadRequestError
|
23 |
import gradio as gr
|
@@ -232,4 +212,4 @@ with gr.Blocks() as demo:
|
|
232 |
if __name__ == '__main__':
|
233 |
|
234 |
demo.queue()
|
235 |
-
demo.launch(debug=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import os
|
2 |
from openai import OpenAI, BadRequestError
|
3 |
import gradio as gr
|
|
|
212 |
if __name__ == '__main__':
|
213 |
|
214 |
demo.queue()
|
215 |
+
demo.launch(debug=False)
|