jayparmar0109 commited on
Commit
dff52a8
·
verified ·
1 Parent(s): 1e1761d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -49,12 +49,10 @@ input=st.text_input("Input Prompt(optional): ",key="input")
49
  submit=st.button("Submit")
50
 
51
  input_prompt = """
52
- You are an expert in understanding business cards.
53
- You will receive input images of business card & you will have to answer questions based on the input image.
54
- You have to extract information from business card images and give correct tag to the output text
55
- like person name, company name, occupation, all contact numbers, email, website, address, other details.
56
- If details are not available don't add tag in output.
57
- Give output in json format.
58
  """
59
 
60
  ## If ask button is clicked
 
49
  submit=st.button("Submit")
50
 
51
  input_prompt = """
52
+ Input: Image of a business card
53
+ Task: Extract and label the following information in JSON format:
54
+ Labels : person_name, company_name, occupation, contact_details (list containing phone numbers, email addresses, website), address, other_details (dictionary for any additional information)
55
+ Constraints: Do not include missing information. Maintain appropriate data types (e.g., phone numbers as strings).
 
 
56
  """
57
 
58
  ## If ask button is clicked