Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,8 +6,10 @@ import torch #this is just like the HF video
|
|
| 6 |
title = "Saras try at thesis abstract ChatBot"
|
| 7 |
description = "Based on a Pretrained Response generation model (DialoGPT)"
|
| 8 |
|
| 9 |
-
examples = ["How are you?","How is Brian?","How is Sara?"]
|
| 10 |
-
|
|
|
|
|
|
|
| 11 |
|
| 12 |
#heres the import of Microsofts tokenizer. *NOTE* that the tokenizers are imported from transformers above
|
| 13 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-large")
|
|
|
|
| 6 |
title = "Saras try at thesis abstract ChatBot"
|
| 7 |
description = "Based on a Pretrained Response generation model (DialoGPT)"
|
| 8 |
|
| 9 |
+
#examples = ["How are you?","How is Brian?","How is Sara?"]
|
| 10 |
+
f = open('thesisAbstract.txt','r')
|
| 11 |
+
examples = f.readlines()
|
| 12 |
+
f.close()
|
| 13 |
|
| 14 |
#heres the import of Microsofts tokenizer. *NOTE* that the tokenizers are imported from transformers above
|
| 15 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-large")
|