File size: 730 Bytes
5472531
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import gradio as gr

title = "test"

# def inference(text):
#     html = (
#             "<div >"
#             "<img  src='file/MOEI_resized.png' alt='image One'>"
#             + "</div>"
#     )
#     return html

# gr.Interface(
#     inference,
#     gr.inputs.Textbox(placeholder="Enter sentence here..."),
#     outputs=["html"],
#     title=title,
#     allow_flagging="never",


# ).launch(enable_queue=True, share=True, allowed_paths=["MOEI_resized.png"])

with gr.Blocks() as demo:
    gr.HTML("<img src='file/MOEI_resized.png' alt='image One'>")


css_code='body{background-image:url("MBZUAI_resized.jpg");}'

gr.Interface(lambda x:x, "textbox", "textbox", css=css_code).launch(debug=True)
    
demo.launch(share=True)