Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
10 |
|
11 |
# Prompt definition
|
12 |
prompt = """
|
13 |
-
You are analyzing a
|
14 |
Extract the following fields as JSON:
|
15 |
- Position applied for
|
16 |
- Office/Ministry
|
@@ -49,8 +49,8 @@ demo = gr.Interface(
|
|
49 |
fn=process_image,
|
50 |
inputs=gr.Image(type="pil"),
|
51 |
outputs="textbox",
|
52 |
-
title="
|
53 |
-
description="Upload a scanned
|
54 |
)
|
55 |
|
56 |
if __name__ == "__main__":
|
|
|
10 |
|
11 |
# Prompt definition
|
12 |
prompt = """
|
13 |
+
You are analyzing a medical document or an application form from a patient.
|
14 |
Extract the following fields as JSON:
|
15 |
- Position applied for
|
16 |
- Office/Ministry
|
|
|
49 |
fn=process_image,
|
50 |
inputs=gr.Image(type="pil"),
|
51 |
outputs="textbox",
|
52 |
+
title="Healthelic Form Data Extractor (Doc Scaner)",
|
53 |
+
description="Upload a scanned medical form to extract key fields."
|
54 |
)
|
55 |
|
56 |
if __name__ == "__main__":
|