Spaces:
Sleeping
Sleeping
file added
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ def extract_medical_entities(user_input):
|
|
109 |
if word in symptoms or word in diseases:
|
110 |
medical_entities.append(word)
|
111 |
logger.info(f"Extracted medical entities: {medical_entities}")
|
112 |
-
return medical_entities
|
113 |
|
114 |
# Function to encode the image
|
115 |
def encode_image(uploaded_image):
|
@@ -289,7 +289,7 @@ def customLLMBot(user_input, uploaded_image, chat_history):
|
|
289 |
def chatbot_ui():
|
290 |
logger.info("Setting up Gradio interface...")
|
291 |
with gr.Blocks() as demo:
|
292 |
-
gr.Markdown("#
|
293 |
|
294 |
chat_history = gr.State([])
|
295 |
|
|
|
109 |
if word in symptoms or word in diseases:
|
110 |
medical_entities.append(word)
|
111 |
logger.info(f"Extracted medical entities: {medical_entities}")
|
112 |
+
# return medical_entities
|
113 |
|
114 |
# Function to encode the image
|
115 |
def encode_image(uploaded_image):
|
|
|
289 |
def chatbot_ui():
|
290 |
logger.info("Setting up Gradio interface...")
|
291 |
with gr.Blocks() as demo:
|
292 |
+
gr.Markdown("# DermaCare Doctor")
|
293 |
|
294 |
chat_history = gr.State([])
|
295 |
|