Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,9 +3,11 @@ import gradio as gr #this is in place of the streamlit of the HF video
|
|
| 3 |
import torch #this is just like the HF video
|
| 4 |
|
| 5 |
|
| 6 |
-
title = "Saras
|
| 7 |
description = "Based on a Pretrained Response generation model (DialoGPT)"
|
| 8 |
-
|
|
|
|
|
|
|
| 9 |
|
| 10 |
#heres the import of Microsofts tokenizer. *NOTE* that the tokenizers are imported from transformers above
|
| 11 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-large")
|
|
@@ -44,4 +46,5 @@ gr.Interface(
|
|
| 44 |
inputs=["text", "state"],
|
| 45 |
outputs=["chatbot", "state"],
|
| 46 |
theme="finlaymacklon/boxy_violet",
|
| 47 |
-
).launch()
|
|
|
|
|
|
| 3 |
import torch #this is just like the HF video
|
| 4 |
|
| 5 |
|
| 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 |
|
| 12 |
#heres the import of Microsofts tokenizer. *NOTE* that the tokenizers are imported from transformers above
|
| 13 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-large")
|
|
|
|
| 46 |
inputs=["text", "state"],
|
| 47 |
outputs=["chatbot", "state"],
|
| 48 |
theme="finlaymacklon/boxy_violet",
|
| 49 |
+
).launch()
|
| 50 |
+
|