| import gradio as gr | |
| from cloud_db import * | |
| from supplier import * | |
| from utility import * | |
| from features import init_app_data | |
| from application import * | |
| from ui_summary import * | |
| examples = [] | |
| # app_theme = gr.themes.Base(neutral_hue="blue") | |
| def create_demo(): | |
| return gr.TabbedInterface( | |
| [summary_page(),articles_page(),preference_page()], | |
| ["Summary","Articles","User Preferences"], | |
| theme = gr.themes.Soft(primary_hue="sky",secondary_hue="orange"), | |
| title="AMRA AI Medi Reader", | |
| css = "footer {visibility: hidden}", | |
| ) | |
| def refresh_data(): | |
| return | |
| if __name__ == "__main__": | |
| init_app_data() | |
| demo = create_demo() | |
| demo.launch() |