LLMs Lost in Translation: M-ALERT uncovers Cross-Linguistic Safety Gaps
Paper
•
2412.15035
•
Published
•
4
None defined yet.
from controlnet_aux import AnylineDetector
anyline = AnylineDetector.from_pretrained(
"TheMistoAI/MistoLine", filename="MTEED.pth", subfolder="Anyline"
).to("cuda")
source = Image.open("source.png")
result = anyline(source, detect_resolution=1280)
# pip install gradio_rerun gradio
import gradio as gr
from gradio_rerun import Rerun
gr.Interface(
inputs=gr.File(file_count="multiple", type="filepath"),
outputs=Rerun(height=900),
fn=lambda file_path: file_path,
).launch()
pip install gradio_huggingfacehub_search