deepaksj commited on
Commit
b31dda5
·
verified ·
1 Parent(s): 2b806f0

Update gradioUI3.py

Browse files
Files changed (1) hide show
  1. gradioUI3.py +10 -3
gradioUI3.py CHANGED
@@ -51,13 +51,20 @@ def append_images(chatbot_history, images):
51
  except gr.exceptions.InvalidPathError:
52
  print(f"Image not found: {image}")
53
 
54
-
55
- with gr.Blocks() as chatbotDisplay:
 
 
 
 
 
 
 
56
  display_message, hints, images = quest.start_quest()
57
  with gr.Tab("Game"):
58
  chatBot = gr.Chatbot([{"role": "assistant", "content": display_message}],type="messages", group_consecutive_messages=False)
59
  with gr.Row():
60
- input = gr.Textbox(show_label=False, submit_btn=True, scale=3, container=True)
61
  codex_btn = gr.Button("Open Codex", scale=1)
62
  gr.Markdown(" ")
63
  input_examples = gr.Examples(hints, input, label="Hint")
 
51
  except gr.exceptions.InvalidPathError:
52
  print(f"Image not found: {image}")
53
 
54
+ custom_css = """
55
+ .custom-box {
56
+ border: 2px solid red;
57
+ padding: 10px;
58
+ border-radius: 8px;
59
+ margin: 5px;
60
+ }
61
+ """
62
+ with gr.Blocks(css=custom_css) as chatbotDisplay:
63
  display_message, hints, images = quest.start_quest()
64
  with gr.Tab("Game"):
65
  chatBot = gr.Chatbot([{"role": "assistant", "content": display_message}],type="messages", group_consecutive_messages=False)
66
  with gr.Row():
67
+ input = gr.Textbox(show_label=False, submit_btn=True, scale=3, elem_classes="custom-box")
68
  codex_btn = gr.Button("Open Codex", scale=1)
69
  gr.Markdown(" ")
70
  input_examples = gr.Examples(hints, input, label="Hint")