import gradio as gr from brain_strom_with_influencer_input import ResponseGeneratorApp from recommendations_and_engagement_predict import StoryRecommendationApp # Instantiate the two apps brainstorm_app = ResponseGeneratorApp().build_ui() print("Brainstorm App:", type(brainstorm_app)) recommendation_app = StoryRecommendationApp().launch_interface() print("Recommendation App:", type(recommendation_app)) # Combine the two apps into a tabbed interface app = gr.TabbedInterface( [brainstorm_app, recommendation_app], # List of apps/interfaces ["Brainstorm with Influencer Input", "Recommendations with Engagement Predictions"], # Tab names ) if __name__ == "__main__": app.launch(share=True)