File size: 497 Bytes
a40b44d debb93e c00fe36 72b855c 6dc0c9c c00fe36 6dc0c9c 72b855c 6dc0c9c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import spaces # import first
from loguru import logger
logger.info("app start")
import gradio as gr
from src.model.model_llava import inference
from src.serve.gradio_block_arena_vision_named import build_side_by_side_vision_ui_named
if __name__ == "__main__":
logger.info("inference called!", inference())
with gr.Blocks() as demo:
states = build_side_by_side_vision_ui_named(
models=["llava-fire", "llava-original"]
)
demo.launch() |