Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from transformers import pipeline
|
|
| 6 |
import gradio as gr
|
| 7 |
|
| 8 |
# β
Expose FastAPI app at top level
|
| 9 |
-
app = FastAPI(
|
| 10 |
|
| 11 |
# π Prometheus metrics
|
| 12 |
triage_requests = Counter("triage_requests_total", "Total triage requests")
|
|
@@ -43,7 +43,7 @@ def metrics():
|
|
| 43 |
# π Root
|
| 44 |
@app.get("/")
|
| 45 |
def home():
|
| 46 |
-
return {"message": "
|
| 47 |
|
| 48 |
# π¨ Gradio UI
|
| 49 |
def gradio_triage(description):
|
|
|
|
| 6 |
import gradio as gr
|
| 7 |
|
| 8 |
# β
Expose FastAPI app at top level
|
| 9 |
+
app = FastAPI()
|
| 10 |
|
| 11 |
# π Prometheus metrics
|
| 12 |
triage_requests = Counter("triage_requests_total", "Total triage requests")
|
|
|
|
| 43 |
# π Root
|
| 44 |
@app.get("/")
|
| 45 |
def home():
|
| 46 |
+
return {"message": "Incident Triage Bot is running!"}
|
| 47 |
|
| 48 |
# π¨ Gradio UI
|
| 49 |
def gradio_triage(description):
|