RohitGandikota commited on
Commit
d8b7eec
β€’
1 Parent(s): 628f18c

testing inference on CPU

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -168,7 +168,7 @@ class Demo:
168
 
169
  with gr.Column(scale=1):
170
 
171
- self.train_status = gr.Button(value='', variant='primary', label='Status', interactive=False)
172
 
173
  self.train_button = gr.Button(
174
  value="Train",
@@ -199,7 +199,7 @@ class Demo:
199
  outputs=[self.train_button, self.train_status, self.download, self.model_dropdown]
200
  )
201
 
202
- def train(self, prompt, train_method, neg_guidance, iterations, lr, pbar = gr.Progress(track_tqdm=True)):
203
 
204
  # if self.training:
205
  # return [gr.update(interactive=True, value='Train'), gr.update(value='Someone else is training... Try again soon'), None, gr.update()]
 
168
 
169
  with gr.Column(scale=1):
170
 
171
+ self.train_status = gr.Button(value='', variant='primary', interactive=False)
172
 
173
  self.train_button = gr.Button(
174
  value="Train",
 
199
  outputs=[self.train_button, self.train_status, self.download, self.model_dropdown]
200
  )
201
 
202
+ def train(self, target_concept,positive_prompt, negative_prompt, rank, iterations_input, lr_input, train_method, neg_guidance, iterations, lr, pbar = gr.Progress(track_tqdm=True)):
203
 
204
  # if self.training:
205
  # return [gr.update(interactive=True, value='Train'), gr.update(value='Someone else is training... Try again soon'), None, gr.update()]