verkaDerkaDerk commited on
Commit
1e16f51
·
1 Parent(s): 696e325

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -47,12 +47,21 @@ def fancy():
47
  def plain():
48
  # trix from https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial
49
  title = "Tiki Diffusion Model"
50
- description = "Diffusion model trained on random tiki images."
51
- article = '<p>Trained with <a href="https://github.com/huggingface/diffusers">diffusers</a>.</p>'
 
 
 
 
 
 
 
 
52
  # 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.
53
  examples = ['tiki-600e.png']
54
  interpretation = 'default' # no idea...
55
  enable_queue = True
 
56
  inputs = None
57
  outputs = "pil"
58
  gr.Interface(
@@ -62,6 +71,7 @@ def plain():
62
  title=title,
63
  description=description,
64
  article=article,
 
65
  #examples=examples,
66
  interpretation=interpretation,
67
  enable_queue=enable_queue
 
47
  def plain():
48
  # trix from https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial
49
  title = "Tiki Diffusion Model"
50
+ description = '''
51
+ Diffusion model trained on random tiki images.
52
+ FIXME:
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
+ css = ".output_image {height: 40rem !important; width: 100% !important;}"
65
  inputs = None
66
  outputs = "pil"
67
  gr.Interface(
 
71
  title=title,
72
  description=description,
73
  article=article,
74
+ css=css,
75
  #examples=examples,
76
  interpretation=interpretation,
77
  enable_queue=enable_queue