Spaces:
Runtime error
Runtime error
File size: 308 Bytes
e6de672 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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() |