Rooni commited on
Commit
bd7cb09
·
1 Parent(s): e177d94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def dzen(theme, description=""):
26
 
27
  if 'choices' in data and len(data['choices']) > 0:
28
  command = data['choices'][0]['message']['content'].strip()
29
- return command
30
  elif 'error' in data:
31
  error_message = data['error']['message']
32
  gr.alert(f'Ошибка: {error_message}')
 
26
 
27
  if 'choices' in data and len(data['choices']) > 0:
28
  command = data['choices'][0]['message']['content'].strip()
29
+ return f'{command} <span onclick="copyToClipboard(\'{command}\')" style="cursor: pointer;">📋</span>'
30
  elif 'error' in data:
31
  error_message = data['error']['message']
32
  gr.alert(f'Ошибка: {error_message}')