Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -221,8 +221,8 @@ with gr.Blocks(title="Ovis-U1-3B") as demo:
|
|
221 |
)
|
222 |
|
223 |
@spaces.GPU(duration=20)
|
224 |
-
"""Use Ovis-U1-3B to generate an Image."""
|
225 |
def run_txt_to_img_tab(prompt, height, width, steps, seed, guidance, progress=gr.Progress(track_tqdm=True)):
|
|
|
226 |
# Seed is already finalized by the randomize_seed_fn in the click chain
|
227 |
imgs = process_txt_to_img(prompt, height, width, steps, seed, guidance, progress=progress)
|
228 |
return (
|
@@ -231,8 +231,8 @@ with gr.Blocks(title="Ovis-U1-3B") as demo:
|
|
231 |
)
|
232 |
|
233 |
@spaces.GPU(duration=20)
|
234 |
-
"""User Ovis-U1-3B to understand an Image (Vision processing)"""
|
235 |
def run_img_to_txt_tab(img, prompt, progress=gr.Progress(track_tqdm=True)):
|
|
|
236 |
if img is None:
|
237 |
return (
|
238 |
gr.update(value=[], visible=False),
|
|
|
221 |
)
|
222 |
|
223 |
@spaces.GPU(duration=20)
|
|
|
224 |
def run_txt_to_img_tab(prompt, height, width, steps, seed, guidance, progress=gr.Progress(track_tqdm=True)):
|
225 |
+
"""Use Ovis-U1-3B to generate an Image."""
|
226 |
# Seed is already finalized by the randomize_seed_fn in the click chain
|
227 |
imgs = process_txt_to_img(prompt, height, width, steps, seed, guidance, progress=progress)
|
228 |
return (
|
|
|
231 |
)
|
232 |
|
233 |
@spaces.GPU(duration=20)
|
|
|
234 |
def run_img_to_txt_tab(img, prompt, progress=gr.Progress(track_tqdm=True)):
|
235 |
+
"""User Ovis-U1-3B to understand an Image (Vision processing)"""
|
236 |
if img is None:
|
237 |
return (
|
238 |
gr.update(value=[], visible=False),
|