Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -113,10 +113,10 @@ def generate_pdf(pdf_path: str, transcription: str, explanation: str):
|
|
113 |
interface = gr.Interface(
|
114 |
fn=analyze_media,
|
115 |
inputs=[
|
116 |
-
gr.
|
117 |
-
gr.
|
118 |
],
|
119 |
-
outputs=gr.
|
120 |
title="Media Analyzer",
|
121 |
description="Upload a video/audio URL, and the app will analyze the content and provide a detailed PDF report.",
|
122 |
)
|
@@ -124,4 +124,3 @@ interface = gr.Interface(
|
|
124 |
# Launch the interface
|
125 |
if __name__ == "__main__":
|
126 |
interface.launch()
|
127 |
-
|
|
|
113 |
interface = gr.Interface(
|
114 |
fn=analyze_media,
|
115 |
inputs=[
|
116 |
+
gr.Textbox(label="Media URL", placeholder="Enter the URL of the video/audio file"),
|
117 |
+
gr.Checkbox(label="Detailed Analysis", value=True),
|
118 |
],
|
119 |
+
outputs=gr.File(label="Generated PDF Report"),
|
120 |
title="Media Analyzer",
|
121 |
description="Upload a video/audio URL, and the app will analyze the content and provide a detailed PDF report.",
|
122 |
)
|
|
|
124 |
# Launch the interface
|
125 |
if __name__ == "__main__":
|
126 |
interface.launch()
|
|