Update app.py
Browse files
app.py
CHANGED
|
@@ -193,13 +193,25 @@ def decode_interface(video, output_file):
|
|
| 193 |
# Create Gradio interface
|
| 194 |
with gr.Blocks() as demo:
|
| 195 |
gr.Markdown("# File Encoding/Decoding Tool")
|
|
|
|
| 196 |
with gr.Tab("Encode"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
file_input = gr.File(label="Upload file to encode")
|
| 198 |
encode_button = gr.Button("Encode")
|
| 199 |
-
encode_output = gr.
|
| 200 |
encode_button.click(encode_interface, inputs=file_input, outputs=encode_output)
|
| 201 |
|
| 202 |
with gr.Tab("Decode"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
video_input = gr.File(label="Upload video to decode")
|
| 204 |
output_file_input = gr.File(label="Output file path")
|
| 205 |
decode_button = gr.Button("Decode")
|
|
|
|
| 193 |
# Create Gradio interface
|
| 194 |
with gr.Blocks() as demo:
|
| 195 |
gr.Markdown("# File Encoding/Decoding Tool")
|
| 196 |
+
|
| 197 |
with gr.Tab("Encode"):
|
| 198 |
+
gr.Markdown("### Steps to Encode a File")
|
| 199 |
+
gr.Markdown("1. Upload the file you want to encode.")
|
| 200 |
+
gr.Markdown("2. Click the 'Encode' button.")
|
| 201 |
+
gr.Markdown("3. Download the encoded video.")
|
| 202 |
+
|
| 203 |
file_input = gr.File(label="Upload file to encode")
|
| 204 |
encode_button = gr.Button("Encode")
|
| 205 |
+
encode_output = gr.Video(label="Encoded Video")
|
| 206 |
encode_button.click(encode_interface, inputs=file_input, outputs=encode_output)
|
| 207 |
|
| 208 |
with gr.Tab("Decode"):
|
| 209 |
+
gr.Markdown("### Steps to Decode a Video")
|
| 210 |
+
gr.Markdown("1. Upload the video you want to decode.")
|
| 211 |
+
gr.Markdown("2. Specify the output file path.")
|
| 212 |
+
gr.Markdown("3. Click the 'Decode' button.")
|
| 213 |
+
gr.Markdown("4. View the decoding result.")
|
| 214 |
+
|
| 215 |
video_input = gr.File(label="Upload video to decode")
|
| 216 |
output_file_input = gr.File(label="Output file path")
|
| 217 |
decode_button = gr.Button("Decode")
|