jrmd commited on
Commit
1f099be
·
1 Parent(s): 2abde89

Update readme

Browse files
Files changed (1) hide show
  1. README.md +10 -1
README.md CHANGED
@@ -14,4 +14,13 @@ The "Demo.py" is a gradio application showing the graph of the losses collected
14
 
15
  ![Alt text](HomeGradio.png)
16
 
17
- L'application de démonstration du modèle est accessible via le lien : https://jrmd-bert-based-news-classification.hf.space/?logs=container&__theme=system&deep_link=bpiyD9W-I0k
 
 
 
 
 
 
 
 
 
 
14
 
15
  ![Alt text](HomeGradio.png)
16
 
17
+ To run this on your computer :
18
+ - Clone the repo : git clone https://github.com/jrmd24/DIT_DL2_BERT.git
19
+ - Download the model (https://huggingface.co/jrmd/BERT-BASED-NEWS-CLASSIFICATION/resolve/main/custom_bert_model.torch?download=true) and place it in the same folder as the "demo.py" file
20
+ - Install gradio : pip install gradio # It is recommended to install it in a python virtual environment
21
+ - Run the app : python demo.py
22
+ - Navigate on your computer at the following url : http://localhost:7860
23
+ - Input news article text in the "input" field then click on the "submit"
24
+
25
+ An online link allows to access the app, but the inference might not be functional on it yet : https://jrmd-bert-based-news-classification.hf.space/?logs=container&__theme=system&deep_link=bpiyD9W-I0k
26
+