MoJaff commited on
Commit
2a0d469
·
verified ·
1 Parent(s): b1e33bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -5,6 +5,11 @@ import soundfile as sf
5
  import numpy as np
6
  import gradio as gr
7
 
 
 
 
 
 
8
  # Initialize the image-to-text pipeline
9
  captionImage = transformers_pipeline("image-to-text", model="Salesforce/blip-image-captioning-large")
10
 
 
5
  import numpy as np
6
  import gradio as gr
7
 
8
+ import sys
9
+ import csv
10
+
11
+ csv.field_size_limit(sys.maxsize)
12
+
13
  # Initialize the image-to-text pipeline
14
  captionImage = transformers_pipeline("image-to-text", model="Salesforce/blip-image-captioning-large")
15