Update README.md
Browse files
README.md
CHANGED
@@ -97,8 +97,21 @@ def generate_text(model, tokenizer, prompt,
|
|
97 |
generated_text = generated_text.split(prompt)[-1].strip()
|
98 |
|
99 |
return generated_text
|
|
|
|
|
|
|
|
|
|
|
100 |
|
|
|
|
|
|
|
101 |
user_query = "I'm a 35-year-old male experiencing symptoms like fatigue, increased sensitivity to cold, and dry, itchy skin. Could these be indicative of hypothyroidism?"
|
|
|
|
|
|
|
|
|
|
|
102 |
generated_text = generate_text(model, tokenizer, user_query)
|
103 |
print(generated_text)
|
104 |
|
|
|
97 |
generated_text = generated_text.split(prompt)[-1].strip()
|
98 |
|
99 |
return generated_text
|
100 |
+
```
|
101 |
+
|
102 |
+
## Inference Example
|
103 |
+
|
104 |
+
This section showcases how to use the model for inference.
|
105 |
|
106 |
+
**User Query:**
|
107 |
+
|
108 |
+
```
|
109 |
user_query = "I'm a 35-year-old male experiencing symptoms like fatigue, increased sensitivity to cold, and dry, itchy skin. Could these be indicative of hypothyroidism?"
|
110 |
+
|
111 |
+
```
|
112 |
+
**Answer:**
|
113 |
+
|
114 |
+
```
|
115 |
generated_text = generate_text(model, tokenizer, user_query)
|
116 |
print(generated_text)
|
117 |
|