Spaces:
Runtime error
Runtime error
prompt update
Browse files
app.py
CHANGED
@@ -125,13 +125,14 @@ def analyze_video(prompt, video, progress=gr.Progress()):
|
|
125 |
progress(1, desc="Complete")
|
126 |
return analysis_result, processing_time
|
127 |
|
128 |
-
with gr.Blocks() as demo:
|
129 |
-
gr.
|
130 |
-
with gr.
|
131 |
-
with gr.
|
132 |
-
prompt_input = gr.Textbox(label="Prompt", value="Analyze this video, give me advice on how to improve it")
|
133 |
video_input = gr.Video(label="Upload Video")
|
134 |
-
|
|
|
135 |
analysis_result = gr.Textbox(label="Analysis Result")
|
136 |
processing_time = gr.Textbox(label="Processing Time")
|
137 |
|
|
|
125 |
progress(1, desc="Complete")
|
126 |
return analysis_result, processing_time
|
127 |
|
128 |
+
with gr.Blocks(theme="NoCrypt/miku") as demo:
|
129 |
+
gr.Label("Video Analyzer")
|
130 |
+
with gr.Accordion("Input"):
|
131 |
+
with gr.Row():
|
132 |
+
prompt_input = gr.Textbox(label="Prompt", value="Analyze this video, give me advice on how to improve it and score from 0 to 100 for each point. Finally, give me a total score from 0 to 100.")
|
133 |
video_input = gr.Video(label="Upload Video")
|
134 |
+
with gr.Accordion("Output"):
|
135 |
+
with gr.Row():
|
136 |
analysis_result = gr.Textbox(label="Analysis Result")
|
137 |
processing_time = gr.Textbox(label="Processing Time")
|
138 |
|