Update app.py
Browse files
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}')
|