Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ messages1 = [
|
|
| 16 |
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
|
| 17 |
"""
|
| 18 |
#client = InferenceClient(model="google/recurrentgemma-2b-it")
|
| 19 |
-
client = pipeline("text-generation", model="google/recurrentgemma-2b-it")
|
| 20 |
|
| 21 |
def respond(
|
| 22 |
message,
|
|
@@ -38,7 +38,8 @@ def respond(
|
|
| 38 |
|
| 39 |
response = ""
|
| 40 |
|
| 41 |
-
|
|
|
|
| 42 |
token = client(
|
| 43 |
messages, max_new_tokens= max_tokens
|
| 44 |
)
|
|
|
|
| 16 |
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
|
| 17 |
"""
|
| 18 |
#client = InferenceClient(model="google/recurrentgemma-2b-it")
|
| 19 |
+
#client = pipeline("text-generation", model="google/recurrentgemma-2b-it")
|
| 20 |
|
| 21 |
def respond(
|
| 22 |
message,
|
|
|
|
| 38 |
|
| 39 |
response = ""
|
| 40 |
|
| 41 |
+
client = pipeline("text-generation", model="google/recurrentgemma-2b-it")
|
| 42 |
+
|
| 43 |
token = client(
|
| 44 |
messages, max_new_tokens= max_tokens
|
| 45 |
)
|