MISSAOUI commited on
Commit
3bdcbcf
·
verified ·
1 Parent(s): 9de0676

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ async def ocr_image(file: UploadFile = File(...)):
29
 
30
  model = genai.GenerativeModel('gemini-2.0-flash')
31
 
32
- prompt = "Extract and Identify all text from this image and generate a receipt without any additional information. The Language of generation must be accourding to the one of the text"
33
  contents = [prompt, image]
34
 
35
  response = model.generate_content(contents)
 
29
 
30
  model = genai.GenerativeModel('gemini-2.0-flash')
31
 
32
+ prompt = "Extraire et identifier tout le texte de cette image, puis générer un reçu sans aucune information supplémentaire."
33
  contents = [prompt, image]
34
 
35
  response = model.generate_content(contents)