Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ image=""
|
|
| 41 |
if uploaded_file is not None:
|
| 42 |
image = Image.open(uploaded_file)
|
| 43 |
st.image(image, caption="Uploaded Image.", use_column_width=True)
|
| 44 |
-
input=st.text_input("Input Prompt(optional): ",key="input")
|
| 45 |
|
| 46 |
|
| 47 |
submit=st.button("Submit")
|
|
@@ -50,7 +50,7 @@ input_prompt = """
|
|
| 50 |
You are an expert in understanding business cards.
|
| 51 |
Input: Image of a business card
|
| 52 |
Task: Extract and label the following information in JSON format:
|
| 53 |
-
Labels : person_name, company_name, occupation, contact_number, email addresse, website, address(
|
| 54 |
Constraints: Do not include missing information. Maintain appropriate data types (e.g., phone numbers as strings).
|
| 55 |
"""
|
| 56 |
|
|
|
|
| 41 |
if uploaded_file is not None:
|
| 42 |
image = Image.open(uploaded_file)
|
| 43 |
st.image(image, caption="Uploaded Image.", use_column_width=True)
|
| 44 |
+
input=st.text_input("Input Prompt (optional) : ",key="input")
|
| 45 |
|
| 46 |
|
| 47 |
submit=st.button("Submit")
|
|
|
|
| 50 |
You are an expert in understanding business cards.
|
| 51 |
Input: Image of a business card
|
| 52 |
Task: Extract and label the following information in JSON format:
|
| 53 |
+
Labels : person_name, company_name, occupation, contact_number, email addresse, website, address(street address, city, state, pincode), other_details (services, features, etc.)
|
| 54 |
Constraints: Do not include missing information. Maintain appropriate data types (e.g., phone numbers as strings).
|
| 55 |
"""
|
| 56 |
|