|
import gradio as gr
|
|
from brain_strom_with_influencer_input import ResponseGeneratorApp
|
|
from recommendations_and_engagement_predict import StoryRecommendationApp
|
|
|
|
|
|
brainstorm_app = ResponseGeneratorApp().build_ui()
|
|
print("Brainstorm App:", type(brainstorm_app))
|
|
|
|
recommendation_app = StoryRecommendationApp().launch_interface()
|
|
print("Recommendation App:", type(recommendation_app))
|
|
|
|
|
|
|
|
app = gr.TabbedInterface(
|
|
[brainstorm_app, recommendation_app],
|
|
["Brainstorm with Influencer Input", "Recommendations with Engagement Predictions"],
|
|
)
|
|
|
|
if __name__ == "__main__":
|
|
app.launch(share=True)
|
|
|