Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelPiloto10 committed Apr 8, 2024
1 parent f7b34c1 commit 3978554
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def status(_: HttpRequest):

def sentiment_analysis(request: HttpRequest):
if request.method == "POST":
print(request.body)
response = requests.post(
f"{AGENT_SERVER_URL}/sentiment_analysis",
data=request.body,
Expand All @@ -51,7 +50,6 @@ def sentiment_analysis(request: HttpRequest):
return HttpResponseRedirect("/status")
else:
messages.add_message(request, messages.ERROR, response.content.decode())
print(response.content.decode())
return render(request, "sentiment_analysis.html")


Expand Down Expand Up @@ -79,14 +77,18 @@ def style_analysis(_: HttpRequest):
template = loader.get_template("../templates/style_analysis.html")
return HttpResponse(template.render())


def topic_modeling(_: HttpRequest):
template = loader.get_template("../templates/topic_modeling.html")
return HttpResponse(template.render())


def nGram_CoOccurrences(_: HttpRequest):
template = loader.get_template("../templates/N-Grams_CoOccurrences.html")
return HttpResponse(template.render())
return HttpResponse(template.render())


def parsers_annotator(_: HttpRequest):
template = loader.get_template("../templates/parsers_annotator.html")
return HttpResponse(template.render())
return HttpResponse(template.render())

0 comments on commit 3978554

Please sign in to comment.