|
import gradio as gr |
|
from gradio_client import Client |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def extract_image() |
|
|
|
def get_moondream() |
|
|
|
def get_salmonn() |
|
|
|
def llm_process() |
|
|
|
def infer(video_in): |
|
|
|
return video_description |
|
|
|
with gr.Blocks() as demo : |
|
with gr.Column(elem_id="col-container"): |
|
gr.HTML(""" |
|
<h2 style="text-align: center;">Video description</h2> |
|
""") |
|
video_in = gr.Video(label="Video input") |
|
submit_btn = gr.Button("SUbmit") |
|
video_description = gr.Textbox(label="Video description") |
|
submit_btn.click( |
|
fn = infer, |
|
inputs = [video_in], |
|
outputs = [video_description] |
|
) |
|
demo.queue().launch() |