Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ import gradio as gr
|
|
36 |
try:
|
37 |
from openai import OpenAI
|
38 |
# For error handling, if relevant
|
39 |
-
from openai
|
40 |
except ImportError:
|
41 |
# If the user doesn't have the correct openai library, instruct them to install or pin
|
42 |
raise ImportError(
|
|
|
36 |
try:
|
37 |
from openai import OpenAI
|
38 |
# For error handling, if relevant
|
39 |
+
from openai import OpenAIError
|
40 |
except ImportError:
|
41 |
# If the user doesn't have the correct openai library, instruct them to install or pin
|
42 |
raise ImportError(
|