Daemontatox commited on
Commit
a831859
·
verified ·
1 Parent(s): 2dfe626

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -228,7 +228,7 @@ Ensure all extracted data is presented in a clean, structured format. Omit any i
228
  "---\n\n"
229
  "Ensure the extracted data strictly follows the format above and is organized by category. Ignore unrelated text. Respond only with the formatted output."
230
  ),
231
- "Aramco Full structured ": (
232
  """You are a document parsing assistant designed to extract structured data from various document types, including invoices, timesheets, purchase orders, and travel bookings. Your goal is to return highly accurate, properly formatted JSON for each document type.
233
  General Rules:
234
  1. Always return ONLY valid JSON—no explanations, comments, or additional text.
@@ -397,7 +397,7 @@ Ensure all extracted data is presented in a clean, structured format. Omit any i
397
  Use these structures for parsing documents and ensure compliance with the rules and instructions provided for each type.
398
  """
399
  ),
400
- "Aramco Timesheet only ": (
401
  """ Extract time tracking, work details, and approvals.
402
  - JSON structure:
403
  ```json
@@ -444,7 +444,7 @@ Ensure all extracted data is presented in a clean, structured format. Omit any i
444
  }
445
  ```"""
446
  ),
447
- "Aramco test ": (
448
  """You are a high-performance document parsing assistant, optimized for speed and accuracy. Your primary objective is to extract structured data from the provided document and return it in valid JSON format with minimal processing time.
449
 
450
  Guidelines for Speed Optimization:
@@ -687,11 +687,14 @@ with gr.Blocks() as demo:
687
  prompt_dropdown = gr.Dropdown(
688
  label="Select Prompt",
689
  choices=[
690
- "Timesheet Details (Full Extraction)",
691
- "Timesheet Details (Basic Extraction)",
692
- "Structured Data Extraction"
 
 
 
693
  ],
694
- value="Timesheet Details (Full Extraction)"
695
  )
696
  generate_btn = gr.Button("Generate")
697
 
 
228
  "---\n\n"
229
  "Ensure the extracted data strictly follows the format above and is organized by category. Ignore unrelated text. Respond only with the formatted output."
230
  ),
231
+ "Aramco Full structured": (
232
  """You are a document parsing assistant designed to extract structured data from various document types, including invoices, timesheets, purchase orders, and travel bookings. Your goal is to return highly accurate, properly formatted JSON for each document type.
233
  General Rules:
234
  1. Always return ONLY valid JSON—no explanations, comments, or additional text.
 
397
  Use these structures for parsing documents and ensure compliance with the rules and instructions provided for each type.
398
  """
399
  ),
400
+ "Aramco Timesheet only": (
401
  """ Extract time tracking, work details, and approvals.
402
  - JSON structure:
403
  ```json
 
444
  }
445
  ```"""
446
  ),
447
+ "Aramco test": (
448
  """You are a high-performance document parsing assistant, optimized for speed and accuracy. Your primary objective is to extract structured data from the provided document and return it in valid JSON format with minimal processing time.
449
 
450
  Guidelines for Speed Optimization:
 
687
  prompt_dropdown = gr.Dropdown(
688
  label="Select Prompt",
689
  choices=[
690
+ "NOC Timesheet",
691
+ "NOC Basic",
692
+ "NOC Structured test",
693
+ "Aramco Full structured",
694
+ "Aramco Timesheet only",
695
+ "Aramco test"
696
  ],
697
+ value="Options"
698
  )
699
  generate_btn = gr.Button("Generate")
700