rahul7star commited on
Commit
3c9aeef
·
verified ·
1 Parent(s): 98ceefb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import gradio as gr
2
  from transformers import BertForQuestionAnswering, BertTokenizer, pipeline
3
-
4
  # Load your fine-tuned model and tokenizer
5
- model = BertForQuestionAnswering.from_pretrained("RahulTextLLM") # Path to the fine-tuned model
6
- tokenizer = BertTokenizer.from_pretrained("RahulTextLLM") # Path to the tokenizer
7
 
8
  # Initialize the custom pipeline with your fine-tuned model
9
  qa_pipeline = pipeline("question-answering", model=model, tokenizer=tokenizer)
 
1
  import gradio as gr
2
  from transformers import BertForQuestionAnswering, BertTokenizer, pipeline
3
+ model_name = "rahul7star/Rahul-Context-AI-01"
4
  # Load your fine-tuned model and tokenizer
5
+ model = BertForQuestionAnswering.from_pretrained(model_name) # Path to the fine-tuned model
6
+ tokenizer = BertTokenizer.from_pretrained(model_name) # Path to the tokenizer
7
 
8
  # Initialize the custom pipeline with your fine-tuned model
9
  qa_pipeline = pipeline("question-answering", model=model, tokenizer=tokenizer)