Spaces:
Runtime error
Runtime error
TA
commited on
Commit
·
a496030
1
Parent(s):
fb4f3f2
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,55 +9,55 @@ EXAMPLE_INPUT = "A Reflective cat between stars."
|
|
| 9 |
# Path to your local image file
|
| 10 |
enticing_image_path = "C:/Users/alain/Downloads/enticing_image.jpg"
|
| 11 |
|
| 12 |
-
html_temp = """
|
| 13 |
<!DOCTYPE html>
|
| 14 |
<html>
|
| 15 |
<head>
|
| 16 |
<style>
|
| 17 |
-
body {
|
| 18 |
font-family: Arial, sans-serif;
|
| 19 |
-
}
|
| 20 |
|
| 21 |
-
.container {
|
| 22 |
text-align: center;
|
| 23 |
background-color: #f4f4f4;
|
| 24 |
padding: 20px;
|
| 25 |
border-radius: 10px;
|
| 26 |
-
}
|
| 27 |
|
| 28 |
-
h1 {
|
| 29 |
color: #333;
|
| 30 |
-
}
|
| 31 |
|
| 32 |
-
.enticing-image {
|
| 33 |
width: 100px;
|
| 34 |
height: 100px;
|
| 35 |
border-radius: 50%;
|
| 36 |
position: absolute;
|
| 37 |
top: 0;
|
| 38 |
right: 0;
|
| 39 |
-
}
|
| 40 |
|
| 41 |
-
.main-image {
|
| 42 |
width: 300px;
|
| 43 |
height: 300px;
|
| 44 |
border-radius: 50%;
|
| 45 |
-
}
|
| 46 |
|
| 47 |
-
p {
|
| 48 |
font-size: 18px;
|
| 49 |
color: #555;
|
| 50 |
-
}
|
| 51 |
</style>
|
| 52 |
</head>
|
| 53 |
<body>
|
| 54 |
<div class="container">
|
| 55 |
-
<h1>{}</h1>
|
| 56 |
<div class="enticing-image">
|
| 57 |
-
<img src='{}' alt='Enticing Image'>
|
| 58 |
</div>
|
| 59 |
<img class="main-image" src='https://huggingface.co/spaces/NerdN/open-gpt-Image-Prompter/blob/main/_45a03b4d-ea0f-4b81-873d-ff6b10461d52.jpg' alt='Your Image'>
|
| 60 |
-
<p>{}</p>
|
| 61 |
</div>
|
| 62 |
</body>
|
| 63 |
</html>
|
|
|
|
| 9 |
# Path to your local image file
|
| 10 |
enticing_image_path = "C:/Users/alain/Downloads/enticing_image.jpg"
|
| 11 |
|
| 12 |
+
html_temp = f"""
|
| 13 |
<!DOCTYPE html>
|
| 14 |
<html>
|
| 15 |
<head>
|
| 16 |
<style>
|
| 17 |
+
body {{
|
| 18 |
font-family: Arial, sans-serif;
|
| 19 |
+
}}
|
| 20 |
|
| 21 |
+
.container {{
|
| 22 |
text-align: center;
|
| 23 |
background-color: #f4f4f4;
|
| 24 |
padding: 20px;
|
| 25 |
border-radius: 10px;
|
| 26 |
+
}}
|
| 27 |
|
| 28 |
+
h1 {{
|
| 29 |
color: #333;
|
| 30 |
+
}}
|
| 31 |
|
| 32 |
+
.enticing-image {{
|
| 33 |
width: 100px;
|
| 34 |
height: 100px;
|
| 35 |
border-radius: 50%;
|
| 36 |
position: absolute;
|
| 37 |
top: 0;
|
| 38 |
right: 0;
|
| 39 |
+
}}
|
| 40 |
|
| 41 |
+
.main-image {{
|
| 42 |
width: 300px;
|
| 43 |
height: 300px;
|
| 44 |
border-radius: 50%;
|
| 45 |
+
}}
|
| 46 |
|
| 47 |
+
p {{
|
| 48 |
font-size: 18px;
|
| 49 |
color: #555;
|
| 50 |
+
}}
|
| 51 |
</style>
|
| 52 |
</head>
|
| 53 |
<body>
|
| 54 |
<div class="container">
|
| 55 |
+
<h1>{TITLE}</h1>
|
| 56 |
<div class="enticing-image">
|
| 57 |
+
<img src='{enticing_image_path}' alt='Enticing Image'>
|
| 58 |
</div>
|
| 59 |
<img class="main-image" src='https://huggingface.co/spaces/NerdN/open-gpt-Image-Prompter/blob/main/_45a03b4d-ea0f-4b81-873d-ff6b10461d52.jpg' alt='Your Image'>
|
| 60 |
+
<p>{EXAMPLE_INPUT}</p>
|
| 61 |
</div>
|
| 62 |
</body>
|
| 63 |
</html>
|