Spaces:
Sleeping
Sleeping
app.py
CHANGED
|
@@ -10,7 +10,7 @@ with gr.Blocks(fill_height=True) as demo:
|
|
| 10 |
def show_html():
|
| 11 |
html_content = """
|
| 12 |
<html>
|
| 13 |
-
<body style="background-color:white;">
|
| 14 |
<h1>Welcome to the HTML page</h1>
|
| 15 |
<input type="text" placeholder="Enter your name">
|
| 16 |
<input type="text" placeholder="Enter your email">
|
|
@@ -19,7 +19,14 @@ def show_html():
|
|
| 19 |
"""
|
| 20 |
return html_content
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
iface.launch()
|
| 24 |
|
| 25 |
demo.launch()
|
|
|
|
| 10 |
def show_html():
|
| 11 |
html_content = """
|
| 12 |
<html>
|
| 13 |
+
<body style="background-color:white; color:black;">
|
| 14 |
<h1>Welcome to the HTML page</h1>
|
| 15 |
<input type="text" placeholder="Enter your name">
|
| 16 |
<input type="text" placeholder="Enter your email">
|
|
|
|
| 19 |
"""
|
| 20 |
return html_content
|
| 21 |
|
| 22 |
+
# Create a Gradio interface with custom CSS to set the font color to black
|
| 23 |
+
css = """
|
| 24 |
+
body {
|
| 25 |
+
color: black;
|
| 26 |
+
}
|
| 27 |
+
"""
|
| 28 |
+
|
| 29 |
+
iface = gr.Interface(fn=show_html, inputs=[], outputs="html", css=css)
|
| 30 |
iface.launch()
|
| 31 |
|
| 32 |
demo.launch()
|