Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def predict(user_input, company):
|
|
103 |
prediction = response['choices'][0]['message']['content']
|
104 |
#except Exception as e:
|
105 |
# This will run if an exception occurs
|
106 |
-
|
107 |
|
108 |
# Print the prediction or error
|
109 |
print(prediction)
|
|
|
103 |
prediction = response['choices'][0]['message']['content']
|
104 |
#except Exception as e:
|
105 |
# This will run if an exception occurs
|
106 |
+
prediction = str(e)
|
107 |
|
108 |
# Print the prediction or error
|
109 |
print(prediction)
|