shivanink8 / news-article-text-summarizer-transformer Goto Github PK
View Code? Open in Web Editor NEWExtractive and Abstractive text summarization of news articles with T5 (Text-To-Text Transfer Transformer) and text ranking algorithms
Extractive and Abstractive text summarization of news articles with T5 (Text-To-Text Transfer Transformer) and text ranking algorithms
When i try to run thr project in conda environment wit python version 3.8 it shows error as :\
(myenv) nachiket@nachiket-Vostro-3480:~/Desktop/News-Article-Text-Summarizer-Transformer/StreamlitApp$ streamlit run highlights_app.py
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8502
Network URL: http://192.168.80.133:8502
2024-03-10 10:43:29.714553: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2024-03-10 10:43:29.761495: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.
2024-03-10 10:43:29.761866: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-03-10 10:43:30.902199: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
404 Client Error: Not Found for url: https://huggingface.co/shivaniNK8/t5-small-finetuned-cnn-news/resolve/main/tf_model.h5
404 Client Error: Not Found for url: https://huggingface.co/shivaniNK8/t5-small-finetuned-cnn-news/resolve/main/tf_model.h5
2024-03-10 10:50:25.839 Uncaught app exception
Traceback (most recent call last):
File "/home/nachiket/anaconda3/envs/myenv/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script
exec(code, module.dict)
File "/home/nachiket/Desktop/News-Article-Text-Summarizer-Transformer/StreamlitApp/highlights_app.py", line 17, in
summarizer = pipeline("summarization", model=hub_model_id)
File "/home/nachiket/anaconda3/envs/myenv/lib/python3.8/site-packages/transformers/pipelines/init.py", line 454, in pipeline
framework, model = infer_framework_load_model(
File "/home/nachiket/anaconda3/envs/myenv/lib/python3.8/site-packages/transformers/pipelines/base.py", line 158, in infer_framework_load_model
raise ValueError(f"Could not load model {model} with any of the following classes: {class_tuple}.")
ValueError: Could not load model shivaniNK8/t5-small-finetuned-cnn-news with any of the following classes: (<class 'transformers.models.auto.modeling_tf_auto.TFAutoModelForSeq2SeqLM'>, <class 'transformers.models.t5.modeling_tf_t5.TFT5ForConditionalGeneration'>).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.