Spaces:
Running
on
Zero
Running
on
Zero
update app.py
Browse files
app.py
CHANGED
@@ -860,7 +860,7 @@ class ChatBotUI(object):
|
|
860 |
history = [(prompt,
|
861 |
f'{pre_info} The generated image is:\n {img_str}')]
|
862 |
return self.get_history(history), gr.update(value=''), gr.update(
|
863 |
-
visible=False)
|
864 |
|
865 |
with self.eg:
|
866 |
self.example_task = gr.Text(label='Task Name',
|
@@ -886,7 +886,7 @@ class ChatBotUI(object):
|
|
886 |
self.example_task, self.example_image, self.example_mask,
|
887 |
self.example_ref_im1, self.text, self.seed
|
888 |
],
|
889 |
-
outputs=[self.chatbot, self.text, self.gallery],
|
890 |
examples_per_page=4,
|
891 |
run_on_click=True)
|
892 |
|
|
|
860 |
history = [(prompt,
|
861 |
f'{pre_info} The generated image is:\n {img_str}')]
|
862 |
return self.get_history(history), gr.update(value=''), gr.update(
|
863 |
+
visible=False), gr.update(value=-1)
|
864 |
|
865 |
with self.eg:
|
866 |
self.example_task = gr.Text(label='Task Name',
|
|
|
886 |
self.example_task, self.example_image, self.example_mask,
|
887 |
self.example_ref_im1, self.text, self.seed
|
888 |
],
|
889 |
+
outputs=[self.chatbot, self.text, self.gallery, self.seed],
|
890 |
examples_per_page=4,
|
891 |
run_on_click=True)
|
892 |
|