text: from django.shortcuts import render
  from django.views.generic import TemplateView
  from services.emojifier import api
  
  
  # Create your views here.
  class Index(TemplateView):
  	template_name = 'index.html'
  
  	def post(self,request):
  		content=request.POST['content']
  		emoji=api.predict(content)
  
  		context={
  			'content':content,
  			'emoji':emoji
  		}
  
  		return render(request,self.template_name,context)
  