peace2024 commited on
Commit
b2d3839
·
verified ·
1 Parent(s): 259bc87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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.inputs.Textbox(label="Media URL", placeholder="Enter the URL of the video/audio file"),
117
- gr.inputs.Checkbox(label="Detailed Analysis", default=True),
118
  ],
119
- outputs=gr.outputs.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,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()