Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,6 +97,14 @@ examples = [
|
|
| 97 |
Image.open("./test_imgs/04.png"), 696, 1024, 3.5, 24, 42]
|
| 98 |
]
|
| 99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
# Gradio interface setup
|
| 101 |
def create_gradio_interface():
|
| 102 |
lora_names = [
|
|
@@ -110,6 +118,7 @@ def create_gradio_interface():
|
|
| 110 |
|
| 111 |
with gr.Blocks() as demo:
|
| 112 |
gr.Markdown("# OmniConsistency LoRA Image Generation")
|
|
|
|
| 113 |
gr.Markdown("Select a LoRA, enter a prompt, and upload an image to generate a new image with OmniConsistency. [View on GitHub](https://github.com/showlab/OmniConsistency)")
|
| 114 |
with gr.Row():
|
| 115 |
with gr.Column(scale=1):
|
|
|
|
| 97 |
Image.open("./test_imgs/04.png"), 696, 1024, 3.5, 24, 42]
|
| 98 |
]
|
| 99 |
|
| 100 |
+
header = """
|
| 101 |
+
<div style="text-align: center; display: flex; justify-content: left; gap: 5px;">
|
| 102 |
+
<a href="https://arxiv.org/abs/2505.18445"><img src="https://img.shields.io/badge/ariXv-2505.18445-A42C25.svg" alt="arXiv"></a>
|
| 103 |
+
<a href="https://huggingface.co/showlab/OmniConsistency"><img src="https://img.shields.io/badge/🤗_HuggingFace-Model-ffbd45.svg" alt="HuggingFace"></a>
|
| 104 |
+
<a href="https://github.com/showlab/OmniConsistency"><img src="https://img.shields.io/badge/GitHub-Code-blue.svg?logo=github&" alt="GitHub"></a>
|
| 105 |
+
</div>
|
| 106 |
+
"""
|
| 107 |
+
|
| 108 |
# Gradio interface setup
|
| 109 |
def create_gradio_interface():
|
| 110 |
lora_names = [
|
|
|
|
| 118 |
|
| 119 |
with gr.Blocks() as demo:
|
| 120 |
gr.Markdown("# OmniConsistency LoRA Image Generation")
|
| 121 |
+
gr.Markdown(header, elem_id="header")
|
| 122 |
gr.Markdown("Select a LoRA, enter a prompt, and upload an image to generate a new image with OmniConsistency. [View on GitHub](https://github.com/showlab/OmniConsistency)")
|
| 123 |
with gr.Row():
|
| 124 |
with gr.Column(scale=1):
|