Spaces:
Runtime error
Runtime error
Commit
·
0eb49bb
1
Parent(s):
1e16f51
Update app.py
Browse files
app.py
CHANGED
@@ -53,17 +53,27 @@ def plain():
|
|
53 |
- runs very slow 120s - 240s
|
54 |
- image is weirdly stretched
|
55 |
'''
|
56 |
-
article = '''
|
57 |
<p><img src="blob/main/tiki-600e.png"></p>
|
58 |
<p>Trained with <a href="https://github.com/huggingface/diffusers">diffusers</a>.</p>
|
59 |
-
'''
|
|
|
60 |
# ValueError: The parameter `examples` must either be a string directory or a list(if there is only 1 input component) or (more generally), a nested list, where each sublist represents a set of inputs.
|
61 |
examples = ['tiki-600e.png']
|
|
|
62 |
interpretation = 'default' # no idea...
|
63 |
enable_queue = True
|
64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
inputs = None
|
66 |
outputs = "pil"
|
|
|
67 |
gr.Interface(
|
68 |
fn=imagine,
|
69 |
inputs=inputs,
|
|
|
53 |
- runs very slow 120s - 240s
|
54 |
- image is weirdly stretched
|
55 |
'''
|
56 |
+
article = gr.HTML('''
|
57 |
<p><img src="blob/main/tiki-600e.png"></p>
|
58 |
<p>Trained with <a href="https://github.com/huggingface/diffusers">diffusers</a>.</p>
|
59 |
+
''')
|
60 |
+
|
61 |
# ValueError: The parameter `examples` must either be a string directory or a list(if there is only 1 input component) or (more generally), a nested list, where each sublist represents a set of inputs.
|
62 |
examples = ['tiki-600e.png']
|
63 |
+
|
64 |
interpretation = 'default' # no idea...
|
65 |
enable_queue = True
|
66 |
+
|
67 |
+
# https://github.com/gradio-app/gradio/issues/287
|
68 |
+
css = '''
|
69 |
+
.output_image {height: 40rem !important; width: 100% !important;}
|
70 |
+
.object-contain {height: 128px !important; width: 100% !important;}
|
71 |
+
'''
|
72 |
+
# css = ".output-image, .input-image, .image-preview {height: 600px !important}"
|
73 |
+
|
74 |
inputs = None
|
75 |
outputs = "pil"
|
76 |
+
|
77 |
gr.Interface(
|
78 |
fn=imagine,
|
79 |
inputs=inputs,
|