Spaces:
Runtime error
Runtime error
VsCode
commited on
Commit
Β·
bee9e2b
1
Parent(s):
5707ab3
solving conflit in login function for the third time
Browse files
app.py
CHANGED
|
@@ -40,6 +40,18 @@ async def startup_event():
|
|
| 40 |
print("Modelo MedGemma carregado com sucesso!")
|
| 41 |
except Exception as e:
|
| 42 |
print(f"Erro ao carregar modelo: {e}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
|
| 45 |
@app.get("/")
|
|
|
|
| 40 |
print("Modelo MedGemma carregado com sucesso!")
|
| 41 |
except Exception as e:
|
| 42 |
print(f"Erro ao carregar modelo: {e}")
|
| 43 |
+
import os
|
| 44 |
+
import logging
|
| 45 |
+
|
| 46 |
+
SPACE_URL = "https://Edalexan-Carelink_Med_module.hf.space"
|
| 47 |
+
|
| 48 |
+
logging.basicConfig(level=logging.INFO)
|
| 49 |
+
logging.info("===================================")
|
| 50 |
+
logging.info("π Application ready")
|
| 51 |
+
logging.info(f"π Space URL: {SPACE_URL}")
|
| 52 |
+
logging.info(f"π‘ Gradio endpoint: {SPACE_URL}/run/predict")
|
| 53 |
+
logging.info("===================================")
|
| 54 |
+
|
| 55 |
|
| 56 |
|
| 57 |
@app.get("/")
|