Human3DAIGC's picture
Update app.py
a3894ef
raw
history blame
1.37 kB
import gradio as gr
import os
url = os.environ['IP_ADDRESS']
with gr.Blocks(css = ".output-image, .input-image, .image-preview {height: 400px !important} ") as demo:
gr.HTML(
"""
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Make-A-Character</title>
<style>
body {font-family: Arial, sans-serif;
text-align: center;
}
header, section, footer {
margin-bottom: 10px;
}
iframe {
width: 80%;
height: 900px;
align-items: center;
justify-content: center;
border: none;
}
</style>
</head>
<body>
<section>
<b>If you like our project, please give us a &starf; on Github to stay updated with the latest developments.</b>
<iframe src=""" + url + """ title="demo"></iframe>
</section>
</body>
</html>""")
if __name__ == "__main__":
demo.queue()
demo.launch()