AINovice2005
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -28,7 +28,7 @@ The model recipe: https://github.com/ParagEkbote/El-Emperador_ModelRecipe
|
|
28 |
|
29 |
## Inference Script:
|
30 |
|
31 |
-
```
|
32 |
def generate_response(model_name, input_text, max_new_tokens=50):
|
33 |
# Load the tokenizer and model from Hugging Face Hub
|
34 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
@@ -56,4 +56,5 @@ if __name__ == "__main__":
|
|
56 |
|
57 |
print(f"Input: {input_text}")
|
58 |
print(f"Output: {output}")
|
|
|
59 |
|
|
|
28 |
|
29 |
## Inference Script:
|
30 |
|
31 |
+
```python
|
32 |
def generate_response(model_name, input_text, max_new_tokens=50):
|
33 |
# Load the tokenizer and model from Hugging Face Hub
|
34 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
56 |
|
57 |
print(f"Input: {input_text}")
|
58 |
print(f"Output: {output}")
|
59 |
+
```
|
60 |
|