Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ image=""
|
|
43 |
if uploaded_file is not None:
|
44 |
image = Image.open(uploaded_file)
|
45 |
st.image(image, caption="Uploaded Image.", use_column_width=True)
|
46 |
-
input=st.text_input("Input Prompt: ",key="input")
|
47 |
|
48 |
|
49 |
submit=st.button("Submit")
|
@@ -52,7 +52,8 @@ 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,
|
|
|
56 |
Give output in json format.
|
57 |
"""
|
58 |
|
|
|
43 |
if uploaded_file is not None:
|
44 |
image = Image.open(uploaded_file)
|
45 |
st.image(image, caption="Uploaded Image.", use_column_width=True)
|
46 |
+
input=st.text_input("Input Prompt(optional): ",key="input")
|
47 |
|
48 |
|
49 |
submit=st.button("Submit")
|
|
|
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 |
|