Skip to content

Commit

Permalink
Merge pull request #4 from andreped/demo
Browse files Browse the repository at this point in the history
Fixed airways task-related naming
  • Loading branch information
andreped authored Oct 3, 2023
2 parents d2434ad + b19d82f commit 5dd2b05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demo/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def main():
# cwd = "/Users/andreped/workspace/AeroPath/" # local testing -> macOS
cwd = "/home/user/app/" # production -> docker

class_name = "tumor"
class_name = "airways"

# initialize and run app
app = WebUI(class_name=class_name, cwd=cwd)
Expand Down
4 changes: 2 additions & 2 deletions demo/src/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def run_model(
input_path: str,
model_path: str,
verbose: str = "info",
task: str = "MRI_Meningioma",
name: str = "Tumor",
task: str = "CT_Airways",
name: str = "Airways",
):
logging.basicConfig()
logging.getLogger().setLevel(logging.WARNING)
Expand Down
2 changes: 1 addition & 1 deletion demo/src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def run(self):

with gr.Row():
gr.Examples(
examples=[self.cwd + "lung_001.nii.gz"],
examples=[self.cwd + "test_thorax_CT.nii.gz"],
inputs=file_output,
outputs=file_output,
fn=self.upload_file,
Expand Down

0 comments on commit 5dd2b05

Please sign in to comment.