jayavibhav commited on
Commit
1d42bb2
1 Parent(s): c6c61f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -4
app.py CHANGED
@@ -16,7 +16,7 @@ def get_prompts(prompt_text):
16
  return text_gen("photo anime, masterpiece, high quality, absurdres, " + prompt_text)
17
  else:
18
  return text_gen("")
19
- proc1=gr.Interface.load("jayavibhav/anime-dreamlike")
20
 
21
  def restart_script_periodically():
22
  while True:
@@ -83,9 +83,35 @@ def send_it2(inputs, noise_level, proc1=proc1):
83
  with gr.Blocks(css='style.css') as demo:
84
  gr.HTML(
85
  """
86
- <p> yo yo</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  """
88
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  with gr.Row(variant="compact"):
90
  prompt = gr.Textbox(
91
  label="Enter your prompt",
@@ -102,8 +128,8 @@ with gr.Blocks(css='style.css') as demo:
102
  noise_level = gr.Slider(minimum=0.0, maximum=3, step=0.1, label="Noise Level")
103
  with gr.Row():
104
  with gr.Row():
105
- output1=gr.Image(label="Dreamlike Anime",show_label=False)
106
- output2=gr.Image(label="Dreamlike Anime",show_label=False)
107
 
108
 
109
  see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt], queue=False)
@@ -114,6 +140,14 @@ with gr.Blocks(css='style.css') as demo:
114
  with gr.Row():
115
  gr.HTML(
116
  """
 
 
 
 
 
 
 
 
117
  """
118
  )
119
 
 
16
  return text_gen("photo anime, masterpiece, high quality, absurdres, " + prompt_text)
17
  else:
18
  return text_gen("")
19
+ proc1=gr.Interface.load("models/jayavibhav/anime-dreamlike)
20
 
21
  def restart_script_periodically():
22
  while True:
 
83
  with gr.Blocks(css='style.css') as demo:
84
  gr.HTML(
85
  """
86
+ <div style="text-align: center; max-width: 650px; margin: 0 auto;">
87
+ <div>
88
+ <h1 style="font-weight: 900; font-size: 3rem; margin-bottom:20px;">
89
+ Dreamlike Anime 1.0
90
+ </h1>
91
+ </div>
92
+ <p style="margin-bottom: 10px; font-size: 96%">
93
+ Noise Level: Controls how much randomness is added to the input before it is sent to the model. Higher noise level produces more diverse outputs, while lower noise level produces similar outputs,
94
+ <a href="https://twitter.com/DavidJohnstonxx/">created by Phenomenon1981</a>.
95
+ </p>
96
+ <p style="margin-bottom: 10px; font-size: 98%">
97
+ ❤️ Press the Like Button if you enjoy my space! ❤️</a>
98
+ </p>
99
+ </div>
100
  """
101
  )
102
+ with gr.Column(elem_id="col-container"):
103
+ with gr.Row(variant="compact"):
104
+ input_text = gr.Textbox(
105
+ label="Short Prompt",
106
+ show_label=False,
107
+ max_lines=2,
108
+ placeholder="Enter a basic idea and click 'Magic Prompt'. Got no ideas? No problem, Simply just hit the magic button!",
109
+ ).style(
110
+ container=False,
111
+ )
112
+ see_prompts = gr.Button("✨ Magic Prompt ✨").style(full_width=False)
113
+
114
+
115
  with gr.Row(variant="compact"):
116
  prompt = gr.Textbox(
117
  label="Enter your prompt",
 
128
  noise_level = gr.Slider(minimum=0.0, maximum=3, step=0.1, label="Noise Level")
129
  with gr.Row():
130
  with gr.Row():
131
+ output1=gr.Image(label="Dreamlike Anime 1.0",show_label=False)
132
+ output2=gr.Image(label="Dreamlike Anime 1.0",show_label=False)
133
 
134
 
135
  see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt], queue=False)
 
140
  with gr.Row():
141
  gr.HTML(
142
  """
143
+ <div class="footer">
144
+ <p> Demo for <a href="https://huggingface.co/dreamlike-art/dreamlike-anime-1.0">Dreamlike Anime 1.0</a> Stable Diffusion model
145
+ </p>
146
+ </div>
147
+ <div class="acknowledgments" style="font-size: 115%">
148
+ <p> Unleash your creative side and generate mesmerizing images with just a few clicks! Enter a spark of inspiration in the "Basic Idea" text box and click the "Magic Prompt" button to elevate it to a polished masterpiece. Make any final tweaks in the "Full Prompt" box and hit the "Generate Images" button to watch your vision come to life. Experiment with the "Noise Level" for a diverse range of outputs, from similar to wildly unique. Let the fun begin!
149
+ </p>
150
+ </div>
151
  """
152
  )
153