Spaces:
Runtime error
Runtime error
fixes double commas typos
Browse files459 unmodified lines4604614624634644654664 unmodified lines4714724734744754764774784794804814824834844854864874884894 unmodified lines494495496497498499500501502503504505459 unmodified linesrun_button.click( # Clear the resultfn=clear_result,inputs=None,outputs=result,,show_api=False).then( # Generate the new imagefn=infer,4 unmodified lines).then( # Update the history galleryfn=lambda x, history: update_history(x[1], history),inputs=[result, history_gallery],outputs=history_gallery,,show_api=False).then( # Show the "Use as Input Image" buttonfn=lambda: gr.update(visible=True),inputs=None,outputs=use_as_input_button,,show_api=False)prompt_input.submit( # Clear the resultfn=clear_result,inputs=None,outputs=result,,show_api=False).then( # Generate the new imagefn=infer,4 unmodified lines).then( # Update the history galleryfn=lambda x, history: update_history(x[1], history),inputs=[result, history_gallery],outputs=history_gallery,,show_api=False).then( # Show the "Use as Input Image" buttonfn=lambda: gr.update(visible=True),inputs=None,outputs=use_as_input_button,,show_api=False)459 unmodified lines4604614624634644654664 unmodified lines4714724734744754764774784794804814824834844854864874884894 unmodified lines494495496497498499500501502503504505459 unmodified linesrun_button.click( # Clear the resultfn=clear_result,inputs=None,outputs=result,show_api=False).then( # Generate the new imagefn=infer,4 unmodified lines).then( # Update the history galleryfn=lambda x, history: update_history(x[1], history),inputs=[result, history_gallery],outputs=history_gallery,show_api=False).then( # Show the "Use as Input Image" buttonfn=lambda: gr.update(visible=True),inputs=None,outputs=use_as_input_button,show_api=False)prompt_input.submit( # Clear the resultfn=clear_result,inputs=None,outputs=result,show_api=False).then( # Generate the new imagefn=infer,4 unmodified lines).then( # Update the history galleryfn=lambda x, history: update_history(x[1], history),inputs=[result, history_gallery],outputs=history_gallery,show_api=False).then( # Show the "Use as Input Image" buttonfn=lambda: gr.update(visible=True),inputs=None,outputs=use_as_input_button,show_api=False)
app.py+6-6