Commit
·
e4e6b6a
1
Parent(s):
c2a1140
added tab for model information
Browse files
app.py
CHANGED
|
@@ -39,9 +39,18 @@ def load_interface():
|
|
| 39 |
Configure Gradio interface
|
| 40 |
'''
|
| 41 |
#set blocks
|
| 42 |
-
|
|
|
|
| 43 |
|
| 44 |
-
with
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
# set title and description
|
| 46 |
gr.Markdown(
|
| 47 |
"""
|
|
@@ -96,14 +105,14 @@ def load_interface():
|
|
| 96 |
clear_btn.click(lambda: [None]*22, outputs=inputs)
|
| 97 |
|
| 98 |
|
| 99 |
-
iface = gr.TabbedInterface(
|
| 100 |
-
[
|
| 101 |
-
["
|
| 102 |
)
|
| 103 |
|
| 104 |
#TODO: include examples like here: https://www.gradio.app/docs/number
|
| 105 |
|
| 106 |
-
|
| 107 |
|
| 108 |
if __name__ == "__main__":
|
| 109 |
load_interface()
|
|
|
|
| 39 |
Configure Gradio interface
|
| 40 |
'''
|
| 41 |
#set blocks
|
| 42 |
+
info_page = gr.Blocks()
|
| 43 |
+
model_page = gr.Blocks()
|
| 44 |
|
| 45 |
+
with info_page:
|
| 46 |
+
gr.Markdown( #TODO: add information about our project: github, description, model metrics, etc.
|
| 47 |
+
"""
|
| 48 |
+
|
| 49 |
+
"""
|
| 50 |
+
)
|
| 51 |
+
continue
|
| 52 |
+
|
| 53 |
+
with model_page:
|
| 54 |
# set title and description
|
| 55 |
gr.Markdown(
|
| 56 |
"""
|
|
|
|
| 105 |
clear_btn.click(lambda: [None]*22, outputs=inputs)
|
| 106 |
|
| 107 |
|
| 108 |
+
iface = gr.TabbedInterface(
|
| 109 |
+
[info_page, model_page],
|
| 110 |
+
["Information", "Smoker Model"]
|
| 111 |
)
|
| 112 |
|
| 113 |
#TODO: include examples like here: https://www.gradio.app/docs/number
|
| 114 |
|
| 115 |
+
iface.launch(server_name="0.0.0.0", server_port=7860)
|
| 116 |
|
| 117 |
if __name__ == "__main__":
|
| 118 |
load_interface()
|