raihanp commited on
Commit
502f355
·
verified ·
1 Parent(s): ebd0f67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ from huggingface_hub import InferenceClient
3
  from transformers import GPT2Tokenizer, GPT2LMHeadModel
4
  import torch
5
 
6
- model = GPT2LMHeadModel.from_pretrained('/content/model/medical-chatbot')
7
  tokenizer = GPT2Tokenizer.from_pretrained('openai-community/gpt2-medium')
8
 
9
  def chat_with_bot(prompt):
 
3
  from transformers import GPT2Tokenizer, GPT2LMHeadModel
4
  import torch
5
 
6
+ model = GPT2LMHeadModel.from_pretrained('raihanp/medical-chatbot')
7
  tokenizer = GPT2Tokenizer.from_pretrained('openai-community/gpt2-medium')
8
 
9
  def chat_with_bot(prompt):