drclab commited on
Commit
fa0b6a5
1 Parent(s): bcd0cea

Button Style

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -18,12 +18,14 @@ def greet(name):
18
 
19
  with gr.Blocks() as demo:
20
  gr.HTML("""<h1 align="center">ChatDulun is Here to Disrupt</h1>""")
21
- with gr.Row():
22
- name = gr.Textbox(label='Guest Name')
23
- output = gr.Textbox(label='Greetings !')
24
- greet_btn = gr.Button("Greet")
25
- with gr.Accordion("Are we learning?"):
 
26
  gr.Markdown("""![Robot](https://drclab-dulun-store.hf.space/img/ml.jpg)""")
 
27
  greet_btn.click(fn=greet, inputs=name, outputs=output)
28
 
29
  demo.title= 'ChatDulun = HigherEd Disrupted'
 
18
 
19
  with gr.Blocks() as demo:
20
  gr.HTML("""<h1 align="center">ChatDulun is Here to Disrupt</h1>""")
21
+ with gr.Row().style(equal_height=True):
22
+ name = gr.Textbox(label='What You Want ...').style(show_copy_button=True, container=True)
23
+ output = gr.Textbox(label='What You Get ...')
24
+ greet_btn = gr.Button("==> ChatGPT will complete ==>").style(size='lg')
25
+
26
+ with gr.Accordion("Are We Learning or Machine Learning ?"):
27
  gr.Markdown("""![Robot](https://drclab-dulun-store.hf.space/img/ml.jpg)""")
28
+
29
  greet_btn.click(fn=greet, inputs=name, outputs=output)
30
 
31
  demo.title= 'ChatDulun = HigherEd Disrupted'