File size: 488 Bytes
54b9ca1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gradio as gr
from modules.views import file, data, email

with gr.Blocks(
    title="Solar Report",
    css="footer {visibility: hidden}",
    theme=gr.themes.Soft(),
    analytics_enabled=False,
) as demo:
    gr.Markdown("# Solar Report")

    with gr.Tab("Inspect"):
        current_file = file()
    with gr.Tab("Process"):
        process_output = data(current_file)
    with gr.Tab("Send"):
        email(process_output)

demo.launch(server_name="0.0.0.0", server_port=7860)