Gab-Chung
commited on
Commit
·
2f5cf24
1
Parent(s):
3120858
changed to huggingface model
Browse files
app.py
CHANGED
@@ -4,10 +4,7 @@ from huggingface_hub import InferenceClient
|
|
4 |
"""
|
5 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
6 |
"""
|
7 |
-
|
8 |
-
messages = [{"role": "user", "content": "What is the capital of France?"}]
|
9 |
-
client = InferenceClient("Gab-Chung/Berom_AI_model")
|
10 |
-
client.chat_completion(messages, max_tokens=100)
|
11 |
|
12 |
|
13 |
def respond(
|
|
|
4 |
"""
|
5 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
6 |
"""
|
7 |
+
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
|
|
|
|
|
8 |
|
9 |
|
10 |
def respond(
|