Update app.py
Browse files
app.py
CHANGED
@@ -2,12 +2,12 @@ from huggingface_hub import InferenceClient
|
|
2 |
import gradio as gr
|
3 |
|
4 |
client = InferenceClient(
|
5 |
-
"
|
6 |
)
|
7 |
|
8 |
|
9 |
def format_prompt(message, history):
|
10 |
-
prompt = "
|
11 |
for user_prompt, bot_response in history:
|
12 |
prompt += f"[INST] {user_prompt} [/INST]"
|
13 |
prompt += f" {bot_response}</s> "
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
client = InferenceClient(
|
5 |
+
"Tawkat/qlora-nursegpt-nclex-mis-DT-v1"
|
6 |
)
|
7 |
|
8 |
|
9 |
def format_prompt(message, history):
|
10 |
+
prompt = "You are a helpful chatbot specialized in medical knowledge.\n"
|
11 |
for user_prompt, bot_response in history:
|
12 |
prompt += f"[INST] {user_prompt} [/INST]"
|
13 |
prompt += f" {bot_response}</s> "
|