Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,21 +22,4 @@ import torch
|
|
| 22 |
|
| 23 |
import gradio as gr
|
| 24 |
|
| 25 |
-
|
| 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")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|