Spaces:
Runtime error
Runtime error
change description
Browse files- src/obs_eval_gradio.py +4 -4
src/obs_eval_gradio.py
CHANGED
|
@@ -45,12 +45,12 @@ def main():
|
|
| 45 |
gr.Markdown("## GPT-4 Vision for Evaluation")
|
| 46 |
with gr.Row():
|
| 47 |
with gr.Column(scale=1):
|
| 48 |
-
api_key_input = gr.Textbox(label="Enter your OpenAI API Key", lines=1)
|
| 49 |
-
instruction_input = gr.Textbox(label="Enter
|
| 50 |
video_upload = gr.File(label="Upload your video", type="file")
|
| 51 |
-
submit_button = gr.Button("
|
| 52 |
with gr.Column(scale=1):
|
| 53 |
-
output_box = gr.Textbox(label="Generated
|
| 54 |
|
| 55 |
submit_button.click(fn=process_video, inputs=[video_upload, api_key_input, instruction_input], outputs=output_box)
|
| 56 |
|
|
|
|
| 45 |
gr.Markdown("## GPT-4 Vision for Evaluation")
|
| 46 |
with gr.Row():
|
| 47 |
with gr.Column(scale=1):
|
| 48 |
+
api_key_input = gr.Textbox(label="Enter your OpenAI API Key which is allowed to use GPT-4 Vision)", lines=1)
|
| 49 |
+
instruction_input = gr.Textbox(label="Enter Your Prompt", placeholder="Enter your prompt here...", lines=5)
|
| 50 |
video_upload = gr.File(label="Upload your video", type="file")
|
| 51 |
+
submit_button = gr.Button("Summit")
|
| 52 |
with gr.Column(scale=1):
|
| 53 |
+
output_box = gr.Textbox(label="Generated Response", lines=7, interactive=False)
|
| 54 |
|
| 55 |
submit_button.click(fn=process_video, inputs=[video_upload, api_key_input, instruction_input], outputs=output_box)
|
| 56 |
|