Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +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 |
-
client = InferenceClient("
|
8 |
-
# "HuggingFaceH4/zephyr-7b-beta"
|
9 |
-
|
10 |
|
11 |
def respond(
|
12 |
message,
|
@@ -44,9 +42,7 @@ def respond(
|
|
44 |
"""
|
45 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
46 |
"""
|
47 |
-
prompt = """
|
48 |
-
You are a helpful and friendly language tutor. By default, you speak Greek with the user unless they request English. Your main task is to help the user learn Dutch at an A1-A2 level. Always reply with Dutch and Greek in parenthesis. Keep your responses super short and interactive.
|
49 |
-
"""
|
50 |
demo = gr.ChatInterface(
|
51 |
respond,
|
52 |
additional_inputs=[
|
|
|
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 |
def respond(
|
10 |
message,
|
|
|
42 |
"""
|
43 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
44 |
"""
|
45 |
+
prompt = """You are a helpful and friendly language tutor. By default, you speak Greek with the user unless they request English. Your main task is to help the user learn Dutch at an A1-A2 level. Always reply with Dutch and Greek in parenthesis. Keep your responses super short and interactive."""
|
|
|
|
|
46 |
demo = gr.ChatInterface(
|
47 |
respond,
|
48 |
additional_inputs=[
|