xordizz-stable / app.py
Xmuzz's picture
Update app.py
7a29611
raw
history blame contribute delete
312 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline("xordizz", model="/models/Xmuzz/xordixx")
def predict(text):
return pipe(text)[0]["token_identifier.txt"]
iface = gr.Interface(
fn=predict,
inputs='text',
outputs='text',
examples=[["Hello! My name is Omar"]]
)
iface.launch()