Spaces:
Runtime error
Runtime error
| 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() | |