Spaces:
Build error
Build error
| import os | |
| os.environ["GRADIO_ANALYTICS_ENABLED"] = "False" | |
| import gradio as gr | |
| # Import the UI-creation functions from your tool scripts | |
| import CFA as CFA_tool | |
| import JPEG_Ghost as JPEG_Ghost_tool | |
| import PRNU as PRNU_tool | |
| import shadow as shadows_tool | |
| # Create the tabbed interface | |
| demo = gr.TabbedInterface( | |
| interface_list=[ | |
| CFA_tool.demo, # Use the Blocks object directly | |
| JPEG_Ghost_tool.demo, # Use the Blocks object directly | |
| PRNU_tool.iface, # Use the Interface object directly | |
| shadows_tool.build_gradio_interface() # Call the function that returns the interface | |
| ], | |
| tab_names=[ | |
| "🎨 CFA Analysis", | |
| "👻 JPEG Ghost", | |
| "📸 PRNU Analysis", | |
| "☀️ Shadow Analysis" | |
| ], | |
| title="Digital Image Forensics Toolkit 🕵️♂️" | |
| ) | |
| # Launch the app | |
| if __name__ == "__main__": | |
| demo.launch() |