Dagfinn1962 commited on
Commit
285a56e
1 Parent(s): a6795dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -118,7 +118,6 @@ models = [
118
 
119
  current_model = models[0]
120
 
121
- gpt2_pipe = pipeline('text-generation', model='https://huggingface.co/Gustavosta/MagicPrompt-Stable-Diffusion', tokenizer='gpt2')
122
 
123
  models2 = []
124
  for model in models:
@@ -168,12 +167,9 @@ with gr.Blocks (css ='main.css') as myface:
168
  output1 = gr.Image(label="")
169
  output2 = gr.Image(label="")
170
  output3 = gr.Image(label="")
171
- with gr.Row():
172
- magic1 = gr.Textbox(label="Generated Prompt", lines=2)
173
- magic2 = gr.Textbox(label="Generated Prompt", lines=2)
174
- magic3 = gr.Textbox(label="Generated Prompt", lines=2)
175
 
176
- model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3,])
177
 
178
  run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
179
  run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])
 
118
 
119
  current_model = models[0]
120
 
 
121
 
122
  models2 = []
123
  for model in models:
 
167
  output1 = gr.Image(label="")
168
  output2 = gr.Image(label="")
169
  output3 = gr.Image(label="")
170
+
 
 
 
171
 
172
+ model_name1.change(set_model, outputs=[output1, output2, output3,])
173
 
174
  run.click(send_it, inputs=[magic1, model_name1], outputs=[output1])
175
  run.click(send_it, inputs=[magic2, model_name1], outputs=[output2])