Spaces:
Sleeping
Sleeping
Commit History
-
π§ Fix Gradio Plot component: Remove unsupported height parameterβ
Mahdi Naser Moghadasi- Remove height=600 from gr.Plot() constructor - Fix TypeError: Plot.__init__() got an unexpected keyword argument 'height' - Plot will use default height from Gradio12a8160 -
π― Simplify to focus on word attention onlyβ
Mahdi Naser Moghadasi⨠What changed: - Removed complex multi-plot interface - Single focus: select a word, see what it attends to - Simple bar chart visualization with color coding - Red = selected word, Orange = top attention targets, Blue = others - Much cleaner and easier to understand - Removed heatmaps and multi-head comparisons - Just one clear question: what does this word pay attention to?5335304 -
π§ Fix type conversion error: Handle string/int comparisonβ
Mahdi Naser Moghadasi- Add type conversion for selected_token parameters - Fix '<=' not supported between instances of 'int' and 'str' error - Add try/except blocks to handle invalid token selections - Ensure all token indices are properly converted to integers7587eb7 -
π§ Fix Plotly compatibility: Remove invalid titleside parameterβ
Mahdi Naser Moghadasi- Remove titleside from colorbar configuration - Fix Invalid property error in Plotly heatmap - Colorbar will use default title positioning064a5c9 -
π§ Fix Gradio compatibility: Remove unsupported theme parametersβ
Mahdi Naser Moghadasi- Remove primary_hue and secondary_hue from theme.set() - Keep Soft theme for consistent styling - Fix TypeError: Base.set() compatibility issue6af8e1f -
π Deploy Transformer Attention Visualizerβ
Mahdi Naser Moghadasi⨠Complete attention visualization app with: - Interactive attention heatmaps using real transformer models - Multi-layer and multi-head attention analysis - Token-level focus and attention distribution plots - Beautiful modern UI with gradient backgrounds - Support for BERT, RoBERTa, DistilBERT, ALBERT models - Real-time visualization updates Resolved merge conflicts and integrated with existing spacea094fcc -
initial commit
Verified signatureea712f0 -
π Initial commit: Transformer Attention Visualizerβ
Mahdi Naser Moghadasiβ¨ Features: - Interactive attention heatmaps with real transformer models - Multi-layer and multi-head attention analysis - Token-level focus and attention distribution plots - Beautiful modern UI with gradient backgrounds - Support for BERT, RoBERTa, DistilBERT, ALBERT models - Real-time visualization updates - Educational examples and explanations π― Visualizations: - Attention heatmap matrix - Attention distribution line plots - Multi-head comparison charts - Interactive token selection and highlighting π¨ UI Features: - Glass-morphism design - Responsive layout - Hover tooltips and interactive plots - Example text suggestionsf142618