abdulsamad commited on
Commit
466a01c
·
verified ·
1 Parent(s): 5e777e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -18
app.py CHANGED
@@ -22,21 +22,4 @@ import torch
22
 
23
  import gradio as gr
24
 
25
- # Create a custom HTML component with the label
26
- label_html = """
27
- <div style="font-size: 18px; font-weight: bold; margin-bottom: 10px;">Custom Label:</div>
28
- <div id="custom-label" style="font-size: 16px;">Hi</div>
29
- """
30
-
31
- # Create a Gradio interface
32
- interface = gr.Interface(
33
- fn=None, # No function needed for this example
34
- inputs=None, # No input components
35
- outputs="html", # Output displayed as HTML
36
- live=True, # Enable live updates
37
- title="Custom Label Example",
38
- html=label_html,
39
- )
40
-
41
- # Launch the Gradio app
42
- interface.launch()
 
22
 
23
  import gradio as gr
24
 
25
+ gr.label("Hi AI")