Jyotiyadav commited on
Commit
e8e65d6
·
verified ·
1 Parent(s): edd6683

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,7 +57,7 @@ def generate_output(input_text,model):
57
  output = ""
58
  # Initialize the FastLanguageModel
59
  model, tokenizer = FastLanguageModel.from_pretrained(
60
- model_name = model,
61
  max_seq_length = 2500,
62
  dtype = None,
63
  load_in_4bit = True,
@@ -113,7 +113,7 @@ model_options = ["DataIntelligenceTeam/NER-Phi-3-mini-4k-instruct"]
113
  iface = gr.Interface(fn=generate_output,
114
  inputs=[
115
  gr.inputs.Textbox(label="Input Text"),
116
- gr.inputs.Dropdown(label="Select the Fine-tuned Model", choices=["DataIntelligenceTeam/NER-Phi-3-mini-4k-instruct","DataIntelligenceTeam/llama-3-8b-Instruct-bnb-4bit"])
117
  ],
118
  outputs=[
119
  gr.outputs.Textbox(label="Original Output Text"),
 
57
  output = ""
58
  # Initialize the FastLanguageModel
59
  model, tokenizer = FastLanguageModel.from_pretrained(
60
+ model_name = "DataIntelligenceTeam/NER-Phi-3-mini-4k-instruct",
61
  max_seq_length = 2500,
62
  dtype = None,
63
  load_in_4bit = True,
 
113
  iface = gr.Interface(fn=generate_output,
114
  inputs=[
115
  gr.inputs.Textbox(label="Input Text"),
116
+ #gr.inputs.Dropdown(label="Select the Fine-tuned Model", choices=["DataIntelligenceTeam/NER-Phi-3-mini-4k-instruct","DataIntelligenceTeam/llama-3-8b-Instruct-bnb-4bit"])
117
  ],
118
  outputs=[
119
  gr.outputs.Textbox(label="Original Output Text"),