Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
|
@@ -155,9 +155,8 @@ class Model:
|
|
| 155 |
return image
|
| 156 |
|
| 157 |
def create_demo():
|
| 158 |
-
TITLE = '# [位-Eclipse Demo](https://eclipse-t2i.github.io/Lambda-ECLIPSE/)'
|
| 159 |
|
| 160 |
-
USAGE = '''To run the demo, you should:
|
| 161 |
1. Upload your image.
|
| 162 |
2. <span style='color: red;'>**Upload a masked subject image with white blankspace or whiten out manually using brush tool.**
|
| 163 |
3. Input a Keyword i.e. 'Dog'
|
|
@@ -171,7 +170,13 @@ def create_demo():
|
|
| 171 |
model = Model()
|
| 172 |
|
| 173 |
with gr.Blocks() as demo:
|
| 174 |
-
gr.Markdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
gr.Markdown(USAGE)
|
| 176 |
with gr.Row():
|
| 177 |
with gr.Column():
|
|
|
|
| 155 |
return image
|
| 156 |
|
| 157 |
def create_demo():
|
|
|
|
| 158 |
|
| 159 |
+
USAGE = '''## To run the demo, you should:
|
| 160 |
1. Upload your image.
|
| 161 |
2. <span style='color: red;'>**Upload a masked subject image with white blankspace or whiten out manually using brush tool.**
|
| 162 |
3. Input a Keyword i.e. 'Dog'
|
|
|
|
| 170 |
model = Model()
|
| 171 |
|
| 172 |
with gr.Blocks() as demo:
|
| 173 |
+
gr.Markdown(
|
| 174 |
+
"""<h1 style="text-align: center;"><b><i>位-ECLIPSE</i>: Multi-Concept Personalized Text-to-Image Diffusion Models by Leveraging CLIP Latent Space</b></h1>
|
| 175 |
+
<h1 style='text-align: center;'><a href='https://eclipse-t2i.github.io/Lambda-ECLIPSE/'>Project Page</a> | <a href='#'>Paper</a> </h1>
|
| 176 |
+
<p style="text-align: center; color: red;">This demo is currently hosted on CPU. We will soon provide the GPU support.</p>
|
| 177 |
+
<p style="text-align: center; color: red;">Please follow the instructions from here to run it locally: <a href="https://github.com/eclipse-t2i/lambda-eclipse-inference">GitHub Inference Code</a></p>
|
| 178 |
+
"""
|
| 179 |
+
)
|
| 180 |
gr.Markdown(USAGE)
|
| 181 |
with gr.Row():
|
| 182 |
with gr.Column():
|