Commit ·
f60bdbe
1
Parent(s): c6ac19f
fix: Uso do Markdown e remoção do 'lines' e 'interactive' flags
Browse files- app.py +10 -7
- src/main.py +2 -2
app.py
CHANGED
|
@@ -1,13 +1,16 @@
|
|
| 1 |
import sys
|
| 2 |
import os
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
from main import demo
|
| 6 |
|
| 7 |
if __name__ == "__main__":
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
| 1 |
import sys
|
| 2 |
import os
|
| 3 |
+
|
| 4 |
+
ROOT = os.path.dirname(__file__)
|
| 5 |
+
SRC = os.path.join(ROOT, "src")
|
| 6 |
+
if SRC not in sys.path:
|
| 7 |
+
sys.path.insert(0, SRC)
|
| 8 |
|
| 9 |
from main import demo
|
| 10 |
|
| 11 |
if __name__ == "__main__":
|
| 12 |
+
demo.launch(
|
| 13 |
+
server_name="0.0.0.0",
|
| 14 |
+
server_port=int(os.environ.get("PORT", 7860)),
|
| 15 |
+
show_api=False
|
| 16 |
+
)
|
|
|
src/main.py
CHANGED
|
@@ -163,8 +163,8 @@ with gr.Blocks(title="Skin Lesion Explainability", theme=gr.themes.Default(prima
|
|
| 163 |
|
| 164 |
with gr.Group():
|
| 165 |
prediction_out = gr.Markdown(
|
| 166 |
-
"### Prediction Result\n\nRun the model to see the output here.",
|
| 167 |
-
|
| 168 |
)
|
| 169 |
|
| 170 |
with gr.Accordion("📋 System Metadata Details", open=False):
|
|
|
|
| 163 |
|
| 164 |
with gr.Group():
|
| 165 |
prediction_out = gr.Markdown(
|
| 166 |
+
value="### Prediction Result\n\nRun the model to see the output here.",
|
| 167 |
+
label="Analysis Results"
|
| 168 |
)
|
| 169 |
|
| 170 |
with gr.Accordion("📋 System Metadata Details", open=False):
|