Spaces:
Runtime error
Runtime error
Monius
commited on
Commit
Β·
1416e63
1
Parent(s):
50e7d4a
v0.2 by <M0n-ius>
Browse files
run.py
CHANGED
@@ -53,8 +53,8 @@ with gr.Blocks() as Core:
|
|
53 |
endpoint = gr.Textbox(label="Azure Endpoint")
|
54 |
with gr.Tab("Google"):
|
55 |
model_gg = gr.Dropdown(label="Model", value="Gemini-1.5-Flash", choices=["Gemini-1.5-Flash", "Gemini-1.5-Pro"], interactive=False)
|
56 |
-
key_gg = gr.Textbox(label="
|
57 |
-
endpoint_gg = gr.Textbox(label="
|
58 |
with gr.Tab("Anthropic"):
|
59 |
model_ac = gr.Dropdown(label="Model", value="Claude-3-Opus", choices=["Claude-3-Opus", "Claude-3-Sonnet"], interactive=False)
|
60 |
key_ac = gr.Textbox(label="Anthropic API Key")
|
@@ -68,11 +68,14 @@ with gr.Blocks() as Core:
|
|
68 |
with gr.Tab("Upload"):
|
69 |
video_src = gr.Video(sources="upload", show_label=False, show_share_button=False, mirror_webcam=False)
|
70 |
with gr.Tab("HF"):
|
71 |
-
video_hf = gr.Text()
|
|
|
72 |
with gr.Tab("Onedrive"):
|
73 |
-
video_od = gr.Text()
|
|
|
74 |
with gr.Tab("Google Drive"):
|
75 |
video_gd = gr.Text()
|
|
|
76 |
caption_button = gr.Button("Caption", variant="primary", size="lg")
|
77 |
caption_button.click(
|
78 |
process_caption,
|
|
|
53 |
endpoint = gr.Textbox(label="Azure Endpoint")
|
54 |
with gr.Tab("Google"):
|
55 |
model_gg = gr.Dropdown(label="Model", value="Gemini-1.5-Flash", choices=["Gemini-1.5-Flash", "Gemini-1.5-Pro"], interactive=False)
|
56 |
+
key_gg = gr.Textbox(label="Gemini API Key")
|
57 |
+
endpoint_gg = gr.Textbox(label="Gemini API Endpoint")
|
58 |
with gr.Tab("Anthropic"):
|
59 |
model_ac = gr.Dropdown(label="Model", value="Claude-3-Opus", choices=["Claude-3-Opus", "Claude-3-Sonnet"], interactive=False)
|
60 |
key_ac = gr.Textbox(label="Anthropic API Key")
|
|
|
68 |
with gr.Tab("Upload"):
|
69 |
video_src = gr.Video(sources="upload", show_label=False, show_share_button=False, mirror_webcam=False)
|
70 |
with gr.Tab("HF"):
|
71 |
+
video_hf = gr.Text(label="Huggingface File Path")
|
72 |
+
video_hf_auth = gr.Text(label="Huggingface Token")
|
73 |
with gr.Tab("Onedrive"):
|
74 |
+
video_od = gr.Text("Microsoft Onedrive")
|
75 |
+
video_od_auth = gr.Text(label="Microsoft Onedrive Token")
|
76 |
with gr.Tab("Google Drive"):
|
77 |
video_gd = gr.Text()
|
78 |
+
video_gd_auth = gr.Text(label="Google Drive Access Token")
|
79 |
caption_button = gr.Button("Caption", variant="primary", size="lg")
|
80 |
caption_button.click(
|
81 |
process_caption,
|