Spaces:
Runtime error
Runtime error
Roland Ding
code optimizatio, remove unused function, ui object and added update for study page dropdon update after refresh.
e61d4b7
| import gradio as gr | |
| from cloud_db import * | |
| from cloud_db import * | |
| from supplier import * | |
| from utility import * | |
| from features import init_app_data | |
| from application import * | |
| from ui_study import * | |
| from ui_studies import * | |
| # from application import app_data | |
| examples = [] | |
| # app_theme = gr.themes.Base(neutral_hue="blue") | |
| def init_demo(): | |
| ''' | |
| initialize the demo data | |
| ''' | |
| study_page = init_study_page() | |
| studies_page = init_studies_page() | |
| return gr.TabbedInterface( | |
| [study_page,studies_page], | |
| ["Clinical Study","Studies"], | |
| theme = gr.themes.Soft(primary_hue="sky",secondary_hue="orange"), | |
| css = "footer {visibility: hidden}", | |
| title="AMRA AI Medi Reader") | |
| def refresh_data(): | |
| return | |
| if __name__ == "__main__": | |
| init_app_data() | |
| demo = init_demo() | |
| demo.launch() |