gustproof commited on
Commit
c3fd84a
·
1 Parent(s): f5660c2

Prevent gradio from gradioing

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -26,7 +26,7 @@ def do():
26
  for p, idx in zip(parts, idxs)
27
  for _ in (
28
  f"{p} ([danbooru post](https://danbooru.donmai.us/posts/{meta[idx]['id']}))",
29
- meta[idx]["large_file_url"],
30
  )
31
  )
32
 
@@ -37,15 +37,15 @@ with gr.Blocks() as demo:
37
  with gr.Row():
38
  joined = gr.Text(label="generated prompt", show_copy_button=True)
39
  with gr.Row(equal_height=True):
40
- text_char = gr.Markdown(label="character")
41
- text_outfit = gr.Markdown(label="outfit")
42
- text_action = gr.Markdown(label="action")
43
- text_scene = gr.Markdown(label="scene")
44
  with gr.Row(equal_height=True):
45
- img_char = gr.Image(label="character ref")
46
- img_outfit = gr.Image(label="outfit ref")
47
- img_action = gr.Image(label="action ref")
48
- img_scene = gr.Image(label="scene ref")
49
  button.click(
50
  do,
51
  [],
 
26
  for p, idx in zip(parts, idxs)
27
  for _ in (
28
  f"{p} ([danbooru post](https://danbooru.donmai.us/posts/{meta[idx]['id']}))",
29
+ f'![]({meta[idx]["large_file_url"]})',
30
  )
31
  )
32
 
 
37
  with gr.Row():
38
  joined = gr.Text(label="generated prompt", show_copy_button=True)
39
  with gr.Row(equal_height=True):
40
+ text_char = gr.Markdown()
41
+ text_outfit = gr.Markdown()
42
+ text_action = gr.Markdown()
43
+ text_scene = gr.Markdown()
44
  with gr.Row(equal_height=True):
45
+ img_char = gr.Markdown()
46
+ img_outfit = gr.Markdown()
47
+ img_action = gr.Markdown()
48
+ img_scene = gr.Markdown()
49
  button.click(
50
  do,
51
  [],