Spaces:
Runtime error
Runtime error
Update app.py
#2
by
Roo-Kh
- opened
app.py
CHANGED
@@ -77,7 +77,7 @@ def process_speech_using_model(sound):
|
|
77 |
return text_out
|
78 |
|
79 |
|
80 |
-
def
|
81 |
img_name = f"{np.random.randint(0, 100)}.jpg"
|
82 |
PIL.Image.fromarray(image.astype('uint8'), 'RGB').save(img_name)
|
83 |
image = open(img_name, "rb").read()
|
|
|
77 |
return text_out
|
78 |
|
79 |
|
80 |
+
def process_image_with_openai(image) :
|
81 |
img_name = f"{np.random.randint(0, 100)}.jpg"
|
82 |
PIL.Image.fromarray(image.astype('uint8'), 'RGB').save(img_name)
|
83 |
image = open(img_name, "rb").read()
|