Rooni commited on
Commit
b042180
·
1 Parent(s): 4e195d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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']