skkjodhpur
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
3 |
import torch
|
4 |
|
5 |
-
# Load
|
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,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 |
)
|