aneesarom commited on
Commit
827f06c
·
verified ·
1 Parent(s): 5cbc2a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -64,9 +64,11 @@ demo = gr.Interface(
64
  "Provide a URL that directly points to a PDF file (from any server). "
65
  "The server fetches the PDF and extracts the text content, returning it in JSON format."
66
  ),
67
- examples=example_urls # This adds buttons below the input box
 
 
68
  )
69
 
70
  if __name__ == "__main__":
71
- demo.launch(mcp_server=True, allow_flagging="never")
72
 
 
64
  "Provide a URL that directly points to a PDF file (from any server). "
65
  "The server fetches the PDF and extracts the text content, returning it in JSON format."
66
  ),
67
+ examples=example_urls, # This adds buttons below the input box
68
+ allow_flagging="never" # ✅ correct in Gradio 4.x
69
+ )
70
  )
71
 
72
  if __name__ == "__main__":
73
+ demo.launch(mcp_server=True)
74