|
import sys |
|
import gradio as gr |
|
|
|
|
|
|
|
def greet(name): |
|
return "ChatDulun is ChatGPT induced disruption to Higher Education \n" + name + "!!" |
|
|
|
|
|
|
|
|
|
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://drclab-dulun-store.hf.space/img/ml.jpg)""") |
|
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() |