You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created a new Python file that will include functions for bias detection specifically for text. Also added content for success page for text (only tuples for rating)
returnrender(request, 'successPage.html', {'thisVar': paragraph, "highValuedList": highValuedList, 'title': title})#Redirects to successpage when a link is submitted
41
42
42
43
eliftext_form.is_valid():
43
44
text_object=text_form.save()
45
+
sentences=biasInText(str(text_object))
44
46
# Do something with the text form submission
45
-
returnrender(request, 'textPage.html', {'thisVar': text_object}) # Render a success page for text form submission
47
+
returnrender(request, 'textPage.html', {'sentences': sentences}) #Redirects to the successpage when text is submitted
0 commit comments