Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -27,6 +27,7 @@ def generate(description, model, max_tokens):
|
|
27 |
|
28 |
if 'choices' in data and len(data['choices']) > 0:
|
29 |
command = data['choices'][0]['message']['content'].strip()
|
|
|
30 |
return command, command
|
31 |
elif 'error' in data:
|
32 |
error_message = data['error']['message']
|
|
|
27 |
|
28 |
if 'choices' in data and len(data['choices']) > 0:
|
29 |
command = data['choices'][0]['message']['content'].strip()
|
30 |
+
print("**Генерация успешна**")
|
31 |
return command, command
|
32 |
elif 'error' in data:
|
33 |
error_message = data['error']['message']
|