Spaces:
Runtime error
Runtime error
File size: 362 Bytes
0ee8759 fd2c31d 2d37d5c 0ee8759 fd2c31d 0ee8759 456c82f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import gradio as gr
import cv2
from llm import llm
import numpy as np
import os
def process_image(image):
# Convert Gradio Image to OpenCV format
img = cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR)
# Perform your image processing
result = llm(img)
return result
iface = gr.Interface(fn=process_image, inputs="image", outputs='text') |