Spaces:
Runtime error
Runtime error
TA
commited on
Commit
·
96134fd
1
Parent(s):
5b7a61e
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,39 +9,16 @@ 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 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
color: #333;
|
| 23 |
-
}
|
| 24 |
-
|
| 25 |
-
img.enticing {
|
| 26 |
-
width: 100px;
|
| 27 |
-
height: 100px;
|
| 28 |
-
border-radius: 50%;
|
| 29 |
-
position: absolute;
|
| 30 |
-
top: 0;
|
| 31 |
-
right: 0;
|
| 32 |
-
}
|
| 33 |
-
|
| 34 |
-
img.main {
|
| 35 |
-
width: 300px;
|
| 36 |
-
height: 300px;
|
| 37 |
-
border-radius: 50%;
|
| 38 |
-
}
|
| 39 |
-
|
| 40 |
-
p {
|
| 41 |
-
font-size: 18px;
|
| 42 |
-
color: #555;
|
| 43 |
-
}
|
| 44 |
-
"""
|
| 45 |
|
| 46 |
zephyr_7b_beta = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta/"
|
| 47 |
|
|
|
|
| 9 |
# Path to your local image file
|
| 10 |
enticing_image_path = "C:/Users/alain/Downloads/enticing_image.jpg"
|
| 11 |
|
| 12 |
+
html_temp = """
|
| 13 |
+
<div style="text-align: center; background-color: #f4f4f4; padding: 20px; border-radius: 10px; position: relative;">
|
| 14 |
+
<h1 style="color: #333;">{}</h1>
|
| 15 |
+
<div style="position: absolute; top: 0; right: 0;">
|
| 16 |
+
<img src='{}' alt='Enticing Image' style='width: 100px; height: 100px; border-radius: 50%;'>
|
| 17 |
+
</div>
|
| 18 |
+
<img src='https://huggingface.co/spaces/NerdN/open-gpt-Image-Prompter/blob/main/_45a03b4d-ea0f-4b81-873d-ff6b10461d52.jpg' alt='Your Image' style='width: 300px; height: 300px; border-radius: 50%;'>
|
| 19 |
+
<p style="font-size: 18px; color: #555;">{}</p>
|
| 20 |
+
</div>
|
| 21 |
+
""".format(TITLE, enticing_image_path, EXAMPLE_INPUT)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
zephyr_7b_beta = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta/"
|
| 24 |
|