Loguie commited on
Commit
bd7ace2
·
verified ·
1 Parent(s): 2c14eb8

Update appp.py

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -6,5 +6,20 @@ with gr.Blocks(fill_height=True) as demo:
6
  gr.Markdown("This Space showcases the google/pegasus-xsum model, served by the hf-inference API. Sign in with your Hugging Face account to use this API.")
7
  button = gr.LoginButton("Sign in")
8
  gr.load("models/google/pegasus-xsum", accept_token=button, provider="hf-inference")
9
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  demo.launch()
 
6
  gr.Markdown("This Space showcases the google/pegasus-xsum model, served by the hf-inference API. Sign in with your Hugging Face account to use this API.")
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;">
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
+ iface = gr.Interface(fn=show_html, inputs=[], outputs="html")
23
+ iface.launch()
24
+
25
  demo.launch()