Spaces:
Runtime error
Runtime error
Commit
·
9844e5d
1
Parent(s):
5f8442e
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,9 +31,7 @@ from gradio_sketch import create_demo as create_demo_sketch
|
|
| 31 |
from model import Model
|
| 32 |
|
| 33 |
MAX_IMAGES = 1
|
| 34 |
-
description = '''
|
| 35 |
-
|
| 36 |
-
[Paper](https://arxiv.org/abs/2302.08453) [GitHub](https://github.com/TencentARC/T2I-Adapter)
|
| 37 |
'''
|
| 38 |
if (SPACE_ID := os.getenv('SPACE_ID')) is not None:
|
| 39 |
description += f'''<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings.<br/>
|
|
@@ -45,6 +43,7 @@ if (SPACE_ID := os.getenv('SPACE_ID')) is not None:
|
|
| 45 |
model = Model()
|
| 46 |
|
| 47 |
with gr.Blocks(css='style.css') as demo:
|
|
|
|
| 48 |
gr.Markdown(description)
|
| 49 |
with gr.Tabs():
|
| 50 |
with gr.TabItem('Sketch'):
|
|
|
|
| 31 |
from model import Model
|
| 32 |
|
| 33 |
MAX_IMAGES = 1
|
| 34 |
+
description = '''This is an unofficial demo for T2I-Adapter. [Paper](https://arxiv.org/abs/2302.08453) [GitHub](https://github.com/TencentARC/T2I-Adapter)
|
|
|
|
|
|
|
| 35 |
'''
|
| 36 |
if (SPACE_ID := os.getenv('SPACE_ID')) is not None:
|
| 37 |
description += f'''<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings.<br/>
|
|
|
|
| 43 |
model = Model()
|
| 44 |
|
| 45 |
with gr.Blocks(css='style.css') as demo:
|
| 46 |
+
gr.Markdown("## T2I Adapter")
|
| 47 |
gr.Markdown(description)
|
| 48 |
with gr.Tabs():
|
| 49 |
with gr.TabItem('Sketch'):
|