A newer version of the Streamlit SDK is available:
1.44.0
metadata
title: NLP_project
emoji: π£
colorFrom: indigo
colorTo: pink
sdk: streamlit
sdk_version: 1.31.0
app_file: app.py
pinned: false
Streamlit app with neural network π‘
Teamπ§π»βπ»
Task π
- Create a service for classifying user-entered reviews of a medical institution using classical ML models and neural networks.
- Create a service for assessing the degree of taxiness of user-entered text using the BERT model.
- Horoscope generation using neural networks.
Contents π€
- For classifying user-entered reviews of a medical institution used πΎ bert-base-cased
- Text toxicity meter π¦ rubert-tiny-toxicity
- Horoscope engine is π½ GPT2
Libraries π
import streamlit as st
import numpy as np
import pandas as pd
import time
import torch
import torch.nn as nn
from torch import tensor
import joblib
from dataclasses import dataclass
from transformers import AutoTokenizer, AutoModel, AutoModelForSequenceClassification, GPT2LMHeadModel, GPT2Tokenizer
import json