Spaces:
Sleeping
Sleeping
mayankchugh-learning
commited on
Commit
•
4058e34
1
Parent(s):
13f6f65
Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,11 @@ 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("HuggingFaceH4/zephyr-7b-beta")
|
|
|
8 |
|
9 |
# Define the prompt and system message
|
10 |
-
prompt = "Enter the age you want the bot to be as n = _ and choose sex as male or female. Example n = 17 and sex = male"
|
11 |
system_message = "You are an assistant bot who speaks based on given age and sex. Enter the age you want the bot to be as n = _ and choose sex as male or female. Example n = 17 and sex = male"
|
12 |
|
13 |
# Generate the response
|
|
|
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 |
+
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")
|
9 |
|
10 |
# Define the prompt and system message
|
11 |
+
# prompt = "Enter the age you want the bot to be as n = _ and choose sex as male or female. Example n = 17 and sex = male"
|
12 |
system_message = "You are an assistant bot who speaks based on given age and sex. Enter the age you want the bot to be as n = _ and choose sex as male or female. Example n = 17 and sex = male"
|
13 |
|
14 |
# Generate the response
|