Spaces:
Sleeping
Sleeping
Update ap.py
Browse files
app.py
CHANGED
|
@@ -7,26 +7,4 @@ with gr.Blocks(fill_height=True) as demo:
|
|
| 7 |
button = gr.LoginButton("Sign in")
|
| 8 |
gr.load("models/google/pegasus-xsum", accept_token=button, provider="hf-inference")
|
| 9 |
|
| 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">
|
| 17 |
-
</body>
|
| 18 |
-
</html>
|
| 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()
|
|
|
|
| 7 |
button = gr.LoginButton("Sign in")
|
| 8 |
gr.load("models/google/pegasus-xsum", accept_token=button, provider="hf-inference")
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
demo.launch()
|