Spaces:
Running
on
Zero
Running
on
Zero
chaojiemao
commited on
Commit
•
42dbbca
1
Parent(s):
e8e3dcf
Update app.py
Browse files
app.py
CHANGED
@@ -1045,7 +1045,7 @@ class ChatBotUI(object):
|
|
1045 |
history = [(prompt,
|
1046 |
f'{pre_info} The generated image is:\n {img_str}')]
|
1047 |
return self.get_history(history), gr.update(value=''), gr.update(
|
1048 |
-
visible=False), gr.update(value=-1)
|
1049 |
|
1050 |
with self.eg:
|
1051 |
self.example_task = gr.Text(label='Task Name',
|
@@ -1071,10 +1071,9 @@ class ChatBotUI(object):
|
|
1071 |
self.example_task, self.example_image, self.example_mask,
|
1072 |
self.example_ref_im1, self.text, self.seed
|
1073 |
],
|
1074 |
-
outputs=[self.chatbot, self.text, self.gallery, self.seed],
|
1075 |
examples_per_page=4,
|
1076 |
run_on_click=True)
|
1077 |
-
|
1078 |
########################################
|
1079 |
def upload_image():
|
1080 |
return (gr.update(visible=True,
|
|
|
1045 |
history = [(prompt,
|
1046 |
f'{pre_info} The generated image is:\n {img_str}')]
|
1047 |
return self.get_history(history), gr.update(value=''), gr.update(
|
1048 |
+
visible=False), gr.Image(value=img), gr.update(value=-1)
|
1049 |
|
1050 |
with self.eg:
|
1051 |
self.example_task = gr.Text(label='Task Name',
|
|
|
1071 |
self.example_task, self.example_image, self.example_mask,
|
1072 |
self.example_ref_im1, self.text, self.seed
|
1073 |
],
|
1074 |
+
outputs=[self.chatbot, self.text, self.gallery, self.legacy_image_viewer, self.seed],
|
1075 |
examples_per_page=4,
|
1076 |
run_on_click=True)
|
|
|
1077 |
########################################
|
1078 |
def upload_image():
|
1079 |
return (gr.update(visible=True,
|