Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ model = genai.GenerativeModel('gemini-1.5-flash-latest')
14
 
15
  def response(image):
16
  prompt = """You are an intelligent document creator. Could you please extract the words from the given screenshot and provide me document text that matches exact screenshot font and look
17
- important note: if the screenshot not contain any text means you must say 'please upload a valid screenshot'"""
18
  img = Image.open(image)
19
  response = model.generate_content([prompt, img])
20
  return response.text
 
14
 
15
  def response(image):
16
  prompt = """You are an intelligent document creator. Could you please extract the words from the given screenshot and provide me document text that matches exact screenshot font and look
17
+ important note: if the screenshot not contain any text means you must say 'please upload a valid screenshot.'"""
18
  img = Image.open(image)
19
  response = model.generate_content([prompt, img])
20
  return response.text