Spaces:
Configuration error
Configuration error
Update app.py
Browse files220 unmodified lines2212222232242252262272282 unmodified lines231232233234235236237238220 unmodified lines)@spaces.GPU(duration=20)"""Use Ovis-U1-3B to generate an Image."""def run_txt_to_img_tab(prompt, height, width, steps, seed, guidance, progress=gr.Progress(track_tqdm=True)):# Seed is already finalized by the randomize_seed_fn in the click chainimgs = process_txt_to_img(prompt, height, width, steps, seed, guidance, progress=progress)return (2 unmodified lines)@spaces.GPU(duration=20)"""User Ovis-U1-3B to understand an Image (Vision processing)"""def run_img_to_txt_tab(img, prompt, progress=gr.Progress(track_tqdm=True)):if img is None:return (gr.update(value=[], visible=False),220 unmodified lines2212222232242252262272282 unmodified lines231232233234235236237238220 unmodified lines)@spaces.GPU(duration=20)def run_txt_to_img_tab(prompt, height, width, steps, seed, guidance, progress=gr.Progress(track_tqdm=True)):"""Use Ovis-U1-3B to generate an Image."""# Seed is already finalized by the randomize_seed_fn in the click chainimgs = process_txt_to_img(prompt, height, width, steps, seed, guidance, progress=progress)return (2 unmodified lines)@spaces.GPU(duration=20)def run_img_to_txt_tab(img, prompt, progress=gr.Progress(track_tqdm=True)):"""User Ovis-U1-3B to understand an Image (Vision processing)"""if img is None:return (gr.update(value=[], visible=False),
app.py+2-2