Skip to content

Instantly share code, notes, and snippets.

@Dhrumilcse
Last active May 20, 2021 04:18
Show Gist options
  • Save Dhrumilcse/a605ff9137d123960919c233e0b9edd3 to your computer and use it in GitHub Desktop.
Save Dhrumilcse/a605ff9137d123960919c233e0b9edd3 to your computer and use it in GitHub Desktop.
# Imports
import ipywidgets as widgets
# Buttons
upload_file = widgets.FileUpload(multiple=False)
upload_btn = widgets.Button(description="Upload and Predict", icon='check', button_style='success')
upload_btn.on_click(upload_btn_eventhandler)
input_widgets = widgets.HBox([upload_file, upload_btn])
with upload_btn_output:
display(input_widgets)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment