Spaces:
Running
Running
add clear
Browse files
app.py
CHANGED
@@ -164,9 +164,8 @@ def main():
|
|
164 |
input_text.submit(fn=post,inputs=[input_text, temperature, top_p, image_prompt, result_text],
|
165 |
outputs=[input_text, result_text])
|
166 |
clear_button.click(fn=clear_fn, inputs=clear_button, outputs=[input_text, result_text, image_prompt])
|
167 |
-
image_prompt.
|
168 |
-
|
169 |
-
change_button.click(fn=change_language, inputs=change_button, outputs=[change_button, maintenance_notice])
|
170 |
|
171 |
print(gr.__version__)
|
172 |
|
|
|
164 |
input_text.submit(fn=post,inputs=[input_text, temperature, top_p, image_prompt, result_text],
|
165 |
outputs=[input_text, result_text])
|
166 |
clear_button.click(fn=clear_fn, inputs=clear_button, outputs=[input_text, result_text, image_prompt])
|
167 |
+
image_prompt.upload(fn=clear_fn2, inputs=clear_button, outputs=[result_text])
|
168 |
+
image_prompt.clear(fn=clear_fn2, inputs=clear_button, outputs=[result_text])
|
|
|
169 |
|
170 |
print(gr.__version__)
|
171 |
|