Update app.py
Browse files
app.py
CHANGED
@@ -165,7 +165,7 @@ def upload_and_manage(file, language):
|
|
165 |
# Mock posting action (you can implement this as needed)
|
166 |
# post_message = mock_post_to_platform(platform, file.name)
|
167 |
|
168 |
-
return
|
169 |
|
170 |
# def generate_dashboard():
|
171 |
# # Mock analytics generation
|
@@ -194,14 +194,14 @@ def build_interface():
|
|
194 |
submit_button = gr.Button("Post and Process")
|
195 |
with gr.Row():
|
196 |
# post_output = gr.Textbox(label="Posting Status", interactive=False)
|
197 |
-
|
198 |
-
translated_output = gr.JSON(label="Translated JSON File")
|
199 |
-
with gr.Row():
|
200 |
processed_video_output = gr.File(label="Download Processed Video", interactive=False) # Download button
|
|
|
|
|
201 |
submit_button.click(
|
202 |
upload_and_manage,
|
203 |
inputs=[file_input, language_input],
|
204 |
-
outputs=[
|
205 |
)
|
206 |
|
207 |
# with gr.Tab("Analytics Dashboard"):
|
|
|
165 |
# Mock posting action (you can implement this as needed)
|
166 |
# post_message = mock_post_to_platform(platform, file.name)
|
167 |
|
168 |
+
return translated_json, output_video_path
|
169 |
|
170 |
# def generate_dashboard():
|
171 |
# # Mock analytics generation
|
|
|
194 |
submit_button = gr.Button("Post and Process")
|
195 |
with gr.Row():
|
196 |
# post_output = gr.Textbox(label="Posting Status", interactive=False)
|
197 |
+
translated_output = gr.JSON(label="Video transcript")
|
|
|
|
|
198 |
processed_video_output = gr.File(label="Download Processed Video", interactive=False) # Download button
|
199 |
+
with gr.Row():
|
200 |
+
|
201 |
submit_button.click(
|
202 |
upload_and_manage,
|
203 |
inputs=[file_input, language_input],
|
204 |
+
outputs=[translated_output, processed_video_output]
|
205 |
)
|
206 |
|
207 |
# with gr.Tab("Analytics Dashboard"):
|