Spaces:
Sleeping
Sleeping
Update src/ui_components_original.py
Browse files
src/ui_components_original.py
CHANGED
|
@@ -8,7 +8,7 @@ from PIL import Image
|
|
| 8 |
import html
|
| 9 |
from typing import Optional
|
| 10 |
from .patient_history import PatientHistoryManager, ReportGenerator
|
| 11 |
-
|
| 12 |
def pil_to_base64(pil_image):
|
| 13 |
"""Convert PIL Image to base64 data URL"""
|
| 14 |
import io
|
|
@@ -713,7 +713,7 @@ button.gr-button:hover, button.gr-button-primary:hover {
|
|
| 713 |
new_patient_group: gr.update(visible=(mode == "New patient")),
|
| 714 |
existing_patient_dd: gr.update(interactive=(mode == "Existing patient"))
|
| 715 |
}
|
| 716 |
-
|
| 717 |
def run_analysis(mode, existing_label,
|
| 718 |
np_name, np_age, np_gender,
|
| 719 |
w_loc, w_dur, pain, moist, infect, diabetic,
|
|
|
|
| 8 |
import html
|
| 9 |
from typing import Optional
|
| 10 |
from .patient_history import PatientHistoryManager, ReportGenerator
|
| 11 |
+
import spaces
|
| 12 |
def pil_to_base64(pil_image):
|
| 13 |
"""Convert PIL Image to base64 data URL"""
|
| 14 |
import io
|
|
|
|
| 713 |
new_patient_group: gr.update(visible=(mode == "New patient")),
|
| 714 |
existing_patient_dd: gr.update(interactive=(mode == "Existing patient"))
|
| 715 |
}
|
| 716 |
+
@spaces.GPU
|
| 717 |
def run_analysis(mode, existing_label,
|
| 718 |
np_name, np_age, np_gender,
|
| 719 |
w_loc, w_dur, pain, moist, infect, diabetic,
|