File size: 909 Bytes
550c9d4
e43cd3d
 
15cfa8d
550c9d4
e43cd3d
64ded05
e43cd3d
3cdf971
 
 
 
550c9d4
3cdf971
550c9d4
 
3cdf971
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import sys
import gradio as gr

#gitsys.path.insert(0, '/')

def greet(name):
    return "ChatDulun is ChatGPT induced disruption to Higher Education \n" + name + "!!"

# iface = gr.Interface(fn=greet, inputs="text", outputs="text", title='ChatDulun = Higher Education Disrupted', 
#                      css=""" body { background-color: red } .input_text input { background-color: green } """)

with gr.Blocks() as demo:
    gr.HTML("""<h1 align="center">ChatDulun is Here to Disrupt</h1>""")
    name = gr.Textbox(label='Guest Name')
    with gr.Accordion("Are we learning?"):
        gr.Markdown("""![Robot](https://miro.medium.com/v2/resize:fit:720/format:webp/1*wohx1bGrN0tRuAZrak5dOg.png)""")
    output = gr.Textbox(label='Greetings !')
    greet_btn = gr.Button("Greet")
    greet_btn.click(fn=greet, inputs=name, outputs=output)

demo.title= 'ChatDulun = Higher Education Disrupted'    
demo.launch()