Commit
·
a8688f4
1
Parent(s):
4483827
Update README.md
Browse files
README.md
CHANGED
|
@@ -57,8 +57,8 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
| 57 |
### Generating your Own Dialuge
|
| 58 |
|
| 59 |
```python
|
| 60 |
-
from speechbrain.
|
| 61 |
-
res_gen_model =
|
| 62 |
print("Hi,How could I help you today?", end="\n")
|
| 63 |
while True:
|
| 64 |
turn = input()
|
|
@@ -96,7 +96,7 @@ pip install -e .
|
|
| 96 |
3. Run Training:
|
| 97 |
|
| 98 |
```
|
| 99 |
-
cd recipes/MultiWOZ/response_generation
|
| 100 |
pip install -r extra_requirements.txt
|
| 101 |
python train_with_gpt.py hparams/train_gpt.yaml --data_folder=your_data_folder
|
| 102 |
```
|
|
|
|
| 57 |
### Generating your Own Dialuge
|
| 58 |
|
| 59 |
```python
|
| 60 |
+
from speechbrain.inference.text import import GPTResponseGenerator
|
| 61 |
+
res_gen_model = GPTResponseGenerator.from_hparams(source="speechbrain/MultiWOZ-GPT-Response_Generation", savedir="pretrained_models/MultiWOZ-GPT-Response_Generation", pymodule_file="custom.py")
|
| 62 |
print("Hi,How could I help you today?", end="\n")
|
| 63 |
while True:
|
| 64 |
turn = input()
|
|
|
|
| 96 |
3. Run Training:
|
| 97 |
|
| 98 |
```
|
| 99 |
+
cd recipes/MultiWOZ/response_generation/gpt/
|
| 100 |
pip install -r extra_requirements.txt
|
| 101 |
python train_with_gpt.py hparams/train_gpt.yaml --data_folder=your_data_folder
|
| 102 |
```
|