Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,14 @@ async def analyze_contract(request: ContractRequest):
|
|
34 |
|
35 |
return {"predictions": outputs} # Returns top masked token predictions
|
36 |
|
|
|
|
|
|
|
|
|
37 |
|
38 |
# Run API on Hugging Face Spaces
|
39 |
if __name__ == "__main__":
|
40 |
import uvicorn
|
41 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
42 |
|
|
|
|
34 |
|
35 |
return {"predictions": outputs} # Returns top masked token predictions
|
36 |
|
37 |
+
@app.get("/")
|
38 |
+
async def root():
|
39 |
+
return {"message": "FastAPI is running!"}
|
40 |
+
|
41 |
|
42 |
# Run API on Hugging Face Spaces
|
43 |
if __name__ == "__main__":
|
44 |
import uvicorn
|
45 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
46 |
|
47 |
+
|