Spaces:
Runtime error
Runtime error
improve front-end
Browse files
app.py
CHANGED
@@ -61,8 +61,8 @@ def run_inference(image_path, text, model, tokenizer):
|
|
61 |
|
62 |
tokenizer, model = load_tokenizer_and_model()
|
63 |
st.title("Diagnosis Scoring")
|
64 |
-
uploaded_file = st.file_uploader("Choose an
|
65 |
-
text_input = st.text_input("Type
|
66 |
if uploaded_file is not None and text_input:
|
67 |
local_image_path = None
|
68 |
try:
|
|
|
61 |
|
62 |
tokenizer, model = load_tokenizer_and_model()
|
63 |
st.title("Diagnosis Scoring")
|
64 |
+
uploaded_file = st.file_uploader("Choose an chest x-ray...", type=["png", "jpg"])
|
65 |
+
text_input = st.text_input("Type the doctor diagnosis")
|
66 |
if uploaded_file is not None and text_input:
|
67 |
local_image_path = None
|
68 |
try:
|