Spaces:
Sleeping
Sleeping
MartinKosela
commited on
Commit
•
fdb24ec
1
Parent(s):
168ee0f
Update app.py
Browse files
app.py
CHANGED
@@ -122,14 +122,4 @@ if st.session_state.rec_model_pressed:
|
|
122 |
st.write("Contact [email protected] or call (857) 600-0180 to learn how we can fine-tune and host this app for you.")
|
123 |
|
124 |
else:
|
125 |
-
st.warning("Please provide a description.")
|
126 |
-
|
127 |
-
|
128 |
-
try:
|
129 |
-
# OpenAI API call
|
130 |
-
except openai.APIError as e:
|
131 |
-
# Handle generic API errors
|
132 |
-
except openai.RateLimitError as e:
|
133 |
-
# Handle rate limit specific errors
|
134 |
-
except openai.APIConnectionError as e:
|
135 |
-
# Handle connection related errors
|
|
|
122 |
st.write("Contact [email protected] or call (857) 600-0180 to learn how we can fine-tune and host this app for you.")
|
123 |
|
124 |
else:
|
125 |
+
st.warning("Please provide a description.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|