Spaces:
Runtime error
Runtime error
ya
Browse files- app/main.py +6 -0
app/main.py
CHANGED
|
@@ -76,6 +76,12 @@ def generate_tags(transcription: str):
|
|
| 76 |
|
| 77 |
app = FastAPI(title="Medical Transcription Pipeline (Groq API)")
|
| 78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
@app.post("/full_process")
|
| 80 |
async def full_process(audio: UploadFile = File(...)):
|
| 81 |
filename = audio.filename
|
|
|
|
| 76 |
|
| 77 |
app = FastAPI(title="Medical Transcription Pipeline (Groq API)")
|
| 78 |
|
| 79 |
+
@app.get("/")
|
| 80 |
+
async def root():
|
| 81 |
+
return {
|
| 82 |
+
"message": "🚀 SOAP AI FastAPI is running. Use /full_process or /soap_tags to interact."
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
@app.post("/full_process")
|
| 86 |
async def full_process(audio: UploadFile = File(...)):
|
| 87 |
filename = audio.filename
|