skkjodhpur commited on
Commit
252265d
·
verified ·
1 Parent(s): b519b92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
  import torch
4
 
5
- # Load a smaller model and tokenizer
6
- model_name = "skkjodhpur/Gemma-Code-Instruct-Finetune-by-skk" # Consider a smaller model if available
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
  model = AutoModelForCausalLM.from_pretrained(model_name)
9
 
@@ -43,7 +43,6 @@ iface = gr.Interface(
43
  inputs="text",
44
  outputs="text",
45
  title="Doctors-Patient Chatbot",
46
- subtitle="Fine-Tuning GEMMA-2B for Doctor-Patient Interaction",
47
  description="Ask me any question related to patient concerns. This model is designed for educational and informational purposes only. Please do not use it for medical diagnosis or treatment. Always consult a qualified healthcare provider for medical advice.",
48
  allow_flagging="never", # Disable flagging if not needed
49
  )
 
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
  import torch
4
 
5
+ # Load model and tokenizer
6
+ model_name = "skkjodhpur/Gemma-Code-Instruct-Finetune-by-skk"
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
  model = AutoModelForCausalLM.from_pretrained(model_name)
9
 
 
43
  inputs="text",
44
  outputs="text",
45
  title="Doctors-Patient Chatbot",
 
46
  description="Ask me any question related to patient concerns. This model is designed for educational and informational purposes only. Please do not use it for medical diagnosis or treatment. Always consult a qualified healthcare provider for medical advice.",
47
  allow_flagging="never", # Disable flagging if not needed
48
  )