Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,4 +22,12 @@ import torch
|
|
| 22 |
|
| 23 |
import gradio as gr
|
| 24 |
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
import gradio as gr
|
| 24 |
|
| 25 |
+
# Your string variable (replace with your actual content)
|
| 26 |
+
text = "Hello, Gradio!"
|
| 27 |
+
|
| 28 |
+
# Create a Gradio interface with a label
|
| 29 |
+
label = gr.Label(text)
|
| 30 |
+
|
| 31 |
+
# Launch the Gradio app
|
| 32 |
+
interface = gr.Interface(inputs=None, outputs=label, title="String Display Example")
|
| 33 |
+
interface.launch()
|