Skip to content

napo178/chatbot_hugging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatbot-using-Transformers

web app:https://napo178-conversational-chatbot-using-transformers-a-main-cs45xs.streamlitapp.com/

To run the app locally, use the following command :-
streamlit run main.py`

The webpage should open in the browser automatically.
If it doesn't, the local URL would be output in the terminal, just copy it and open it in the browser manually.
By default, it would be http://localhost:8501/

Transformers models:

https://huggingface.co/transformers/v4.4.2/_modules/transformers/models/auto/modeling_auto.html

GPT-2 + SEC2VEC CALL

from transformers import GPT2Tokenizer tokenizer = GPT2Tokenizer.from_pretrained("gpt2") tokenizer("Hello world")['input_ids'] tokenizer(" Hello world")['input_ids']

#Deployment

  1. Clone the repo (git clone)

  2. Sign in streamlit.com

  3. Click on deploy app and select the Python file(py)

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages