Spaces:
Running
Running
Update app.py
Browse files
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 |
|