Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.2]

### Changed
- Bump gradio dependency to `>=6.0.0`, use `buttons` API for Dataframe copy button

## [1.0.1]

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "immunotype"
version = "1.0.1"
version = "1.0.2"
description = "Peptide-based HLA typing from immunopeptidomics data"
readme = "README.md"
requires-python = ">=3.10"
Expand Down Expand Up @@ -40,7 +40,7 @@ dependencies = [

[project.optional-dependencies]
app = [
"gradio>=4.0.0",
"gradio>=6.0.0",
"matplotlib>=3.5.0"
]
dev = [
Expand Down
2 changes: 1 addition & 1 deletion src/immunotype/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using graph neural networks and lookup tables.
"""

__version__ = "1.0.1"
__version__ = "1.0.2"

from .immunotype import predict

Expand Down
17 changes: 9 additions & 8 deletions src/immunotype/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ def create_interface():
"""Create the Gradio interface."""
with gr.Blocks(
title="immunotype",
theme=theme,
css=".logo-dark { display: none; } .logo-light { display: inline; } "
".dark .logo-dark { display: inline; } .dark .logo-light { display: none; }",
) as app:
gr.HTML(
f"<div style='display: flex; align-items: center; gap: 16px; margin-bottom: 8px;'>"
Expand Down Expand Up @@ -239,8 +236,8 @@ def create_interface():
headers=["sample", "typing"],
datatype=["str", "str"],
row_count=1,
col_count=(2, "fixed"),
show_copy_button=True,
column_count=(2, "fixed"),
buttons=["copy"],
label="Typing",
)
with gr.Group():
Expand All @@ -255,8 +252,8 @@ def create_interface():
datatype=["str", "str", "number", "str"],
row_count=1,
label="Typing probabilities",
col_count=(4, "fixed"),
show_copy_button=True,
column_count=(4, "fixed"),
buttons=["copy"],
)
with gr.Row():
typing_output = gr.File(label="Typing results", visible=False)
Expand Down Expand Up @@ -302,7 +299,11 @@ def create_interface():
# Main function to launch the app via CLI
def main():
app = create_interface()
app.launch()
app.launch(
theme=theme,
css=".logo-dark { display: none; } .logo-light { display: inline; } "
".dark .logo-dark { display: inline; } .dark .logo-light { display: none; }",
)


# For direct execution of the app interface
Expand Down
Loading