Spaces:
Runtime error
Runtime error
Update hf_demo/einstein/views.py
Browse files
hf_demo/einstein/views.py
CHANGED
|
@@ -11,6 +11,10 @@ from rest_framework.response import Response
|
|
| 11 |
|
| 12 |
from einstein.ml_service import MlProcessing
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
class FileProcessingView(APIView):
|
| 15 |
def post(self, request):
|
| 16 |
file = request.data.get('file')
|
|
|
|
| 11 |
|
| 12 |
from einstein.ml_service import MlProcessing
|
| 13 |
|
| 14 |
+
class TestView(APIView):
|
| 15 |
+
def get(self, request):
|
| 16 |
+
return Response({"message":"Test successsfull"})
|
| 17 |
+
|
| 18 |
class FileProcessingView(APIView):
|
| 19 |
def post(self, request):
|
| 20 |
file = request.data.get('file')
|