soiz1 commited on
Commit
9db5c95
·
verified ·
1 Parent(s): 1b7afac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -54,11 +54,16 @@ with gr.Blocks(theme=theme) as demo:
54
  textbox = gr.Textbox(show_label=False, placeholder='Type your prompt here')
55
  button = gr.Button("Generate", variant="primary")
56
 
57
- gr.Examples([
58
- ["Emma Stone on prom night, mint green satin maxi dress"],
59
- ["Lady Gaga, 50s hair style, prom night"],
60
- ["Rihanna wearing a silver prom dress with crystal jewelry"]
61
- ], textbox)
 
 
 
 
 
62
 
63
  gr.Markdown("""
64
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/650a1281b48ff3906647edd0/OLPLii-mE6VhIiabvJwOm.png)
 
54
  textbox = gr.Textbox(show_label=False, placeholder='Type your prompt here')
55
  button = gr.Button("Generate", variant="primary")
56
 
57
+ gr.Examples(
58
+ [["Emma Stone on prom night, mint green satin maxi dress"],
59
+ ["Lady Gaga, 50s hair style, prom night"],
60
+ ["Rihanna wearing a silver prom dress with crystal jewelry"]],
61
+ inputs=textbox,
62
+ outputs=img,
63
+ fn=generate,
64
+ cache_examples=False # キャッシュ機能をオフにする
65
+ )
66
+
67
 
68
  gr.Markdown("""
69
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/650a1281b48ff3906647edd0/OLPLii-mE6VhIiabvJwOm.png)