Rooni commited on
Commit
209e895
·
1 Parent(s): b042180

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,7 +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
- print("**Генерация успешна**")
31
  return command, command
32
  elif 'error' in data:
33
  error_message = data['error']['message']
@@ -63,7 +63,7 @@ with gr.Blocks(css=css) as vui:
63
  with gr.Tab("Ответ"):
64
  text_output = gr.Markdown(show_label=False, value="**Здравствуйте!** Чем я могу Вам помочь сегодня?")
65
  with gr.Accordion(label="Без Markdown", open=False):
66
- text_output_nm = gr.Textbox(show_label=False, value="**Здравствуйте!** Чем я могу Вам помочь сегодня?")
67
  text_button.click(generate, inputs=[promt, model, max_tokens], outputs=[text_output, text_output_nm])
68
 
69
  #end
 
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']
 
63
  with gr.Tab("Ответ"):
64
  text_output = gr.Markdown(show_label=False, value="**Здравствуйте!** Чем я могу Вам помочь сегодня?")
65
  with gr.Accordion(label="Без Markdown", open=False):
66
+ text_output_nm = gr.Textbox(show_label=False, value="**Здравствуйте!** Чем я могу Вам помочь сегодня?", lines=3)
67
  text_button.click(generate, inputs=[promt, model, max_tokens], outputs=[text_output, text_output_nm])
68
 
69
  #end