Update app.py
Browse files
app.py
CHANGED
|
@@ -171,7 +171,8 @@ class DicomAnalyzer:
|
|
| 171 |
except Exception as e:
|
| 172 |
print(f"Error handling keyboard input: {str(e)}")
|
| 173 |
return self.display_image
|
| 174 |
-
|
|
|
|
| 175 |
try:
|
| 176 |
if self.current_image is None:
|
| 177 |
return None, "No image loaded"
|
|
@@ -419,5 +420,4 @@ if __name__ == "__main__":
|
|
| 419 |
)
|
| 420 |
except Exception as e:
|
| 421 |
print(f"Error launching application: {str(e)}")
|
| 422 |
-
raise e
|
| 423 |
-
|
|
|
|
| 171 |
except Exception as e:
|
| 172 |
print(f"Error handling keyboard input: {str(e)}")
|
| 173 |
return self.display_image
|
| 174 |
+
|
| 175 |
+
def analyze_roi(self, evt: gr.SelectData):
|
| 176 |
try:
|
| 177 |
if self.current_image is None:
|
| 178 |
return None, "No image loaded"
|
|
|
|
| 420 |
)
|
| 421 |
except Exception as e:
|
| 422 |
print(f"Error launching application: {str(e)}")
|
| 423 |
+
raise e
|
|
|