Open pngwn opened 1 year ago
126/190 demos are used somewhere on the website:
['altair_plot', 'animeganv2', 'audio_component', 'autocomplete', 'automatic-speech-recognition', 'blocks_essay', 'blocks_essay_update', 'blocks_flag', 'blocks_flipper', 'blocks_form', 'blocks_hello', 'blocks_inputs', 'blocks_js_methods', 'blocks_kinematics', 'blocks_random_slider', 'blocks_simple_squares', 'blocks_speech_text_sentiment', 'blocks_update', 'blocks_xray', 'button_component', 'calculator', 'calculator_list_and_dict', 'calculator_live', 'chatbot_component', 'chatbot_demo', 'chatbot_multimodal', 'checkbox_component', 'checkboxgroup_component', 'chicago-bike-share-dashboard', 'chicago-bikeshare-dashboard', 'clustering', 'color_generator', 'color_picker', 'colorpicker_component', 'dashboard', 'dataframe_component', 'dataset_component', 'depth_estimation', 'diff_texts', 'dropdown_component', 'Echocardiogram-Segmentation', 'english_translator', 'examples_component', 'fake_diffusion', 'fake_gan', 'fake_gan_no_input', 'file_component', 'filter_records', 'fraud_detector', 'gallery_component', 'generate_english_german', 'generate_tone', 'gpt_j', 'hangman', 'hello_blocks', 'hello_world', 'hello_world_2', 'hello_world_3', 'highlightedtext_component', 'html_component', 'image_classification', 'image_component', 'image_mod', 'image_mod_default_image', 'image_segmentation', 'interface_parallel', 'interface_parallel_load', 'interface_random_slider', 'interface_series', 'interface_series_load', 'interpretation_component', 'json_component', 'label_component', 'leaderboard', 'lineplot_component', 'live_dashboard', 'main_note', 'map_airbnb', 'markdown_component', 'matrix_transpose', 'model3D', 'model3d_component', 'musical_instrument_identification', 'native_plots', 'neon-tts-plugin-coqui', 'ner_pipeline', 'number_component', 'outbreak_forecast', 'plot_component', 'progress', 'progress_component', 'progress_simple', 'question-answering', 'radio_component', 'reverse_audio', 'reversible_flow', 'rows_and_columns', 'same-person-or-different', 'save_file_no_output', 'scatterplot_component', 'sentence_builder', 'sentiment_analysis', 'sepia_filter', 'sine_curve', 'slider_component', 'sound_alert', 'state_component', 'stock_forecast', 'stt_or_tts', 'tax_calculator', 'text_analysis', 'text_generation', 'textbox_component', 'timeseries-forecasting-with-prophet', 'timeseries_component', 'titanic_survival', 'translation', 'unified_demo_text_generation', 'upload_button', 'uploadbutton_component', 'variable_outputs', 'video_component', 'video_identity', 'xgboost-income-prediction-with-explainability', 'zip_files', 'zip_to_json']
Only 64 aren't used anywhere on the website (but are folders in /demo
). Those are:
['all_demos', 'audio_debugger', 'blocks_component_shortcut', 'blocks_flashcards', 'blocks_gpt', 'blocks_interpretation', 'blocks_joined', 'blocks_layout', 'blocks_mask', 'blocks_multiple_event_triggers', 'blocks_neural_instrument_coding', 'blocks_outputs', 'blocks_page_load', 'blocks_plug', 'blocks_scroll', 'blocks_static', 'blocks_style', 'blocks_textbox_max_lines', 'blocks_webcam', 'bokeh_plot', 'calculator_blocks', 'calculator_blocks_cached', 'cancel_events', 'concurrency_with_queue', 'concurrency_without_queue', 'count_generator', 'custom_path', 'dataframe_datatype', 'dataset', 'diffusers_with_batching', 'digit_classifier', 'event_trigger', 'fake_diffusion_with_gif', 'fake_gan_2', 'gender_sentence_custom_interpretation', 'gender_sentence_default_interpretation', 'gif_maker', 'gpt_j_unified', 'hello_login', 'image_classifier', 'image_classifier_2', 'image_classifier_interface_load', 'image_classifier_interpretation', 'input_output', 'kitchen_sink', 'kitchen_sink_random', 'latex', 'live_with_vars', 'longest_word', 'no_input', 'pictionary', 'reset_components', 'sales_projections', 'score_tracker', 'spectogram', 'stable-diffusion', 'stream_audio', 'stream_frames', 'streaming_stt', 'streaming_wav2vec', 'unispeech-speaker-verification', 'waveform', 'webcam', 'white_noise_vid_not_playable']
The demos used in docs: (Docs pulls from the 'Demos: ' tag in the object's docstrings)
['altair_plot', 'blocks_essay', 'blocks_essay_update', 'blocks_flipper', 'blocks_hello', 'blocks_inputs', 'blocks_kinematics', 'blocks_random_slider', 'blocks_simple_squares', 'blocks_speech_text_sentiment', 'blocks_update', 'blocks_xray', 'chatbot_demo', 'chatbot_multimodal', 'chicago-bikeshare-dashboard', 'color_generator', 'color_picker', 'diff_texts', 'fake_gan', 'filter_records', 'fraud_detector', 'generate_english_german', 'generate_tone', 'gpt_j', 'hello_world', 'hello_world_3', 'image_mod', 'image_mod_default_image', 'interface_parallel', 'interface_parallel_load', 'interface_random_slider', 'interface_series', 'interface_series_load', 'live_dashboard', 'main_note', 'map_airbnb', 'matrix_transpose', 'model3D', 'native_plots', 'outbreak_forecast', 'progress', 'reverse_audio', 'sentence_builder', 'sound_alert', 'stock_forecast', 'stt_or_tts', 'tax_calculator', 'text_analysis', 'titanic_survival', 'upload_button', 'video_identity', 'zip_files', 'zip_to_json']
['audio_component', 'button_component', 'chatbot_component', 'checkbox_component', 'checkboxgroup_component', 'colorpicker_component', 'dataframe_component', 'dataset_component', 'dropdown_component', 'examples_component', 'file_component', 'gallery_component', 'highlightedtext_component', 'html_component', 'image_component', 'interpretation_component', 'json_component', 'label_component', 'lineplot_component', 'markdown_component', 'model3d_component', 'number_component', 'plot_component', 'progress_component', 'radio_component', 'scatterplot_component', 'slider_component', 'state_component', 'textbox_component', 'timeseries_component', 'uploadbutton_component', 'video_component']
The demos used in guides: (everything tagged with $demo_ in a guide)
['blocks_essay_update', 'blocks_flag', 'blocks_flipper', 'blocks_form', 'blocks_hello', 'blocks_js_methods', 'blocks_speech_text_sentiment', 'calculator', 'calculator_list_and_dict', 'calculator_live', 'chatbot_demo', 'chicago-bike-share-dashboard', 'english_translator', 'fake_diffusion', 'fake_gan_no_input', 'generate_english_german', 'hangman', 'hello_blocks', 'hello_world', 'hello_world_2', 'hello_world_3', 'map_airbnb', 'ner_pipeline', 'progress_simple', 'reversible_flow', 'rows_and_columns', 'save_file_no_output', 'sepia_filter', 'sine_curve', 'text_analysis', 'unified_demo_text_generation', 'variable_outputs']
The demos used in the website demos tab: (defined in /website/homepage/src/demos/__init__.py
)
['animeganv2', 'autocomplete', 'automatic-speech-recognition', 'clustering', 'dashboard', 'depth_estimation', 'fake_diffusion', 'fake_gan', 'hello_world', 'image_classification', 'image_segmentation', 'leaderboard', 'live_dashboard', 'map_airbnb', 'musical_instrument_identification', 'neon-tts-plugin-coqui', 'outbreak_forecast', 'same-person-or-different', 'sentiment_analysis', 'tax_calculator', 'text_analysis', 'text_generation', 'timeseries-forecasting-with-prophet', 'translation', 'xgboost-income-prediction-with-explainability']
The demos used in the index page:
["Echocardiogram-Segmentation", "question-answering", "timeseries-forecasting-with-prophet", "xgboost-income-prediction-with-explainability"]
What a hero.
We did discuss this in #1638 but we never did it.
Part of the reason the DX is challenging with gradio is figuring out what any of the demos actually do.
As that issue mentioned we have a mix of 'showcase' type demos which show off using gradio for some usecase and 'test' type demos which really exist for us to test things when developing. However these boundaries are often mixed up which makes find the right demo really painful.
I'm going to pick this up and propose something as i work on the DX a bit but i do need some help understanding which demos it would be very bad to delete.
So which demos are we currently using on the docs, the website, in guides, or in other places that are important? Is there an easy way to find this out?
As an aside, demos that are used in guides/docs/etc should probably live with those things (especially for guides) not a huge deal tho, we can address it when we have cleaned things up a bit.
cc @freddyaboulton @aliabd @abidlabs