ana-solo commited on
Commit
1d39f94
·
verified ·
1 Parent(s): b2abd1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -3
app.py CHANGED
@@ -283,6 +283,26 @@ body {
283
  .gradio-container {
284
  background: white !important;
285
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  """
287
 
288
  # === Gradio UI ===
@@ -328,9 +348,7 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Default()) as demo:
328
  elem_id="prompt_field"
329
  )
330
  with gr.Row(elem_classes="prompt_buttons"):
331
- submit_btn = gr.Button("", elem_id="submit_prompt")
332
- # Иконка отправки (замените на реальный путь, если нужно)
333
- submit_btn.style(full_width=False)
334
 
335
  answer_output = gr.Markdown(elem_classes="answer", value="")
336
 
 
283
  .gradio-container {
284
  background: white !important;
285
  }
286
+
287
+ #submit_prompt {
288
+ background: none !important;
289
+ border: none !important;
290
+ font-size: 0 !important;
291
+ width: 40px !important;
292
+ height: 40px !important;
293
+ cursor: pointer !important;
294
+ position: relative !important;
295
+ }
296
+
297
+ #submit_prompt::after {
298
+ content: "➤";
299
+ font-size: 24px !important;
300
+ position: absolute;
301
+ top: 50%;
302
+ left: 50%;
303
+ transform: translate(-50%, -50%);
304
+ color: black;
305
+ }
306
  """
307
 
308
  # === Gradio UI ===
 
348
  elem_id="prompt_field"
349
  )
350
  with gr.Row(elem_classes="prompt_buttons"):
351
+ submit_btn = gr.Button("", elem_id="submit_prompt")
 
 
352
 
353
  answer_output = gr.Markdown(elem_classes="answer", value="")
354