gokaygokay commited on
Commit
744140b
·
1 Parent(s): 0b332b7

understanding

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -1,11 +1,5 @@
1
  import gradio as gr
2
  from llm_inference_video import VideoLLMInferenceNode
3
- import random
4
- import spaces
5
-
6
- @spaces.GPU()
7
- def dummy():
8
- pass
9
 
10
  title = """<h1 align="center">AI Video Prompt Generator</h1>
11
  <p align="center">Generate creative video prompts with technical specifications</p>
@@ -134,16 +128,17 @@ def create_video_interface():
134
  with gr.Tab("Visual Analysis"):
135
  with gr.Row():
136
  with gr.Column():
137
- image_input = gr.Image(label="Upload Image")
138
  image_question = gr.Textbox(
139
  label="Question (optional)",
140
  placeholder="What is in this image?"
141
  )
 
142
  analyze_image_btn = gr.Button("Analyze Image")
143
  image_output = gr.Textbox(label="Analysis Result", lines=5)
144
 
145
  with gr.Column():
146
- video_input = gr.Video(label="Upload Video")
147
  analyze_video_btn = gr.Button("Analyze Video")
148
  video_output = gr.Textbox(label="Video Analysis", lines=10)
149
 
 
1
  import gradio as gr
2
  from llm_inference_video import VideoLLMInferenceNode
 
 
 
 
 
 
3
 
4
  title = """<h1 align="center">AI Video Prompt Generator</h1>
5
  <p align="center">Generate creative video prompts with technical specifications</p>
 
128
  with gr.Tab("Visual Analysis"):
129
  with gr.Row():
130
  with gr.Column():
131
+ image_input = gr.Image(label="Upload Image", type="filepath")
132
  image_question = gr.Textbox(
133
  label="Question (optional)",
134
  placeholder="What is in this image?"
135
  )
136
+
137
  analyze_image_btn = gr.Button("Analyze Image")
138
  image_output = gr.Textbox(label="Analysis Result", lines=5)
139
 
140
  with gr.Column():
141
+ video_input = gr.Video(label="Upload Video", type="filepath")
142
  analyze_video_btn = gr.Button("Analyze Video")
143
  video_output = gr.Textbox(label="Video Analysis", lines=10)
144