DHEIVER commited on
Commit
b1ed862
·
1 Parent(s): 8692f05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -48
app.py CHANGED
@@ -60,55 +60,8 @@ iface = gr.Interface(
60
  predict,
61
  inputs=gr.inputs.Image(label="Carregue uma imagem da região ocular", type="pil"),
62
  outputs=gr.outputs.Label(num_top_classes=2, label="Avaliação"),
63
- theme="compact",
64
- css="""body {
65
- background-color: #f0f0f0;
66
- font-family: Arial, sans-serif;
67
- }
68
- .container {
69
- margin: 20px;
70
- }
71
- .custom-upload-btn {
72
- background-color: #007bff;
73
- color: white;
74
- padding: 10px 20px;
75
- cursor: pointer;
76
- border-radius: 5px;
77
- font-weight: bold;
78
- }
79
- .output {
80
- font-size: 18px;
81
- text-align: center;
82
- }
83
- .loading {
84
- display: none;
85
- }
86
- .output.loading {
87
- display: block;
88
- text-align: center;
89
- }
90
- """,
91
  )
92
 
93
- # HTML personalizado para o cabeçalho
94
- header_html = """
95
- <div style="background-color: #007bff; padding: 20px; text-align: center;">
96
- <h1 style="color: white;">Detecção de Catarata em Imagens Oculares</h1>
97
- </div>
98
- """
99
-
100
- # Adicione o cabeçalho à interface
101
- iface.layout(header=header_html)
102
-
103
- # HTML personalizado para o rodapé
104
- footer_html = """
105
- <div style="background-color: #007bff; padding: 10px; text-align: center; color: white;">
106
- &copy; 2023 Detecção de Catarata Inc.
107
- </div>
108
- """
109
-
110
- # Adicione o rodapé à interface
111
- iface.layout(footer=footer_html)
112
-
113
  # Execute a interface Gradio
114
  iface.launch()
 
60
  predict,
61
  inputs=gr.inputs.Image(label="Carregue uma imagem da região ocular", type="pil"),
62
  outputs=gr.outputs.Label(num_top_classes=2, label="Avaliação"),
63
+ theme="auto", # Usar o tema padrão do Gradio
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  )
65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  # Execute a interface Gradio
67
  iface.launch()