Spaces:
Runtime error
Runtime error
import gradio as gr | |
from transformers import pipeline | |
# Load your model | |
model = pipeline("fill-mask", model="Phase-Technologies/RoBERTo") | |
# Define inference function | |
def predict(text): | |
return model(text) | |
# Create Gradio UI | |
iface = gr.Interface(fn=predict, inputs="text", outputs="json") | |
iface.launch() |