Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
-
from huggingface_hub import InferenceClient
|
2 |
import gradio as gr
|
3 |
|
4 |
-
|
|
|
|
|
|
|
5 |
"Tawkat/qlora-nursegpt-nclex-mis-DT-v1"
|
6 |
-
)
|
7 |
|
8 |
|
9 |
def format_prompt(message, history):
|
|
|
1 |
+
from huggingface_hub import InferenceClient, get_inference_endpoint
|
2 |
import gradio as gr
|
3 |
|
4 |
+
endpoint = get_inference_endpoint("qlora-nursegpt-nclex-mis-dt--eca")
|
5 |
+
client = endpoint.client()
|
6 |
+
|
7 |
+
'''client = InferenceClient(
|
8 |
"Tawkat/qlora-nursegpt-nclex-mis-DT-v1"
|
9 |
+
)'''
|
10 |
|
11 |
|
12 |
def format_prompt(message, history):
|