dimasdeffieux commited on
Commit
596db7c
·
verified ·
1 Parent(s): 7ca6f01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -62,6 +62,12 @@ print("TEXT INPUT: ", text)
62
  print("WORD PARSING: ",words)
63
  print("flashcard output:",make_flashcards(words, "korean"))
64
 
 
 
 
 
 
 
65
 
66
  demo = gr.ChatInterface(
67
  fn=ocr_inference,
 
62
  print("WORD PARSING: ",words)
63
  print("flashcard output:",make_flashcards(words, "korean"))
64
 
65
+ examples = [
66
+ [{"text": "@RolmOCR OCR the Text in the Image", "files": ["rolm/1.jpeg"]}],
67
+ [{"text": "@RolmOCR Explain the Ad in Detail", "files": ["examples/videoplayback.mp4"]}],
68
+ [{"text": "@RolmOCR OCR the Image", "files": ["rolm/3.jpeg"]}],
69
+ [{"text": "Extract as JSON table from the table", "files": ["examples/4.jpg"]}],
70
+ ]
71
 
72
  demo = gr.ChatInterface(
73
  fn=ocr_inference,