-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
106 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"yaml.schemas": { | ||
"https://www.artillery.io/schema.json": [] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
celery==5.2.7 | ||
coverage==7.0.0 | ||
django-environ==0.9.0 | ||
Django==4.1.4 | ||
flake8==6.0.0 | ||
psycopg2==2.9.5 | ||
python-dotenv==0.21.0 | ||
pytest==7.2.0 | ||
pytest-django==4.5.2 | ||
pytest-mock==3.10.0 | ||
torch==1.13.1 | ||
transformers==4.18.0 | ||
SQLAlchemy==1.4.45 | ||
celery==5.4.0 | ||
coverage==7.6.0 | ||
django-environ==0.11.2 | ||
Django==5.0.7 | ||
flake8==7.1.0 | ||
psycopg2==2.9.9 | ||
python-dotenv==1.0.1 | ||
pytest==8.3.1 | ||
pytest-django==4.8.0 | ||
pytest-mock==3.14.0 | ||
torch==2.4.0 | ||
transformers==4.43.2 | ||
SQLAlchemy==2.0.31 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
from django.db import models | ||
|
||
from django.contrib.postgres.fields import ArrayField | ||
|
||
class Sentiment(models.Model): | ||
label = models.TextField(null=False) | ||
score = models.FloatField(null=False) | ||
tags = ArrayField(models.TextField(), null=False) | ||
text = models.TextField(null=False) | ||
sentiment = models.CharField(max_length=100, null=False) | ||
created = models.DateTimeField(auto_now=True) | ||
created_at = models.DateTimeField(auto_now=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% block content %} | ||
<h1>Sentiment {{sentiment.id}}</h1> | ||
<p>{{ sentiment.created }} / {{ sentiment.sentiment }} / {{sentiment.text}}</p> | ||
<p>{{ sentiment.created_at }} / {{ sentiment.score }} / {{sentiment.text}}</p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{% block content %} | ||
<h1>Sentiments</h1> | ||
{% if sentiment_list %} {% for record in sentiment_list %} | ||
<p>{{ record.created }} / {{ record.sentiment }} / {{record.text}}</p> | ||
<p>{{ record.created_at }} / {{ record.score }} / {{record.text}}</p> | ||
{% endfor %} {% else %} | ||
<p>There are no sentiments to show.</p> | ||
{% endif %} {% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters