Spaces:
Runtime error
Runtime error
# モデルの常時ロードとGradioの使用例 | |
# 必要なライブラリをインポート | |
from transformers import pipeline | |
import gradio as gr | |
# 画像分類のためのパイプラインを定義 | |
image_classification_pipe = pipeline("image-classification", model="sanali209/imclasif-quality-v001") | |
# Gradioによるモデルのロードと起動 | |
gr.Interface(fn=image_classification_pipe, inputs="image", outputs="label").launch() | |