Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import time
|
|
4 |
import gradio as gr
|
5 |
|
6 |
# Load a pre-trained chatbot model
|
7 |
-
chatbot = pipeline('text-generation', model='gpt2-large'
|
8 |
|
9 |
def wrap(x):
|
10 |
return textwrap.fill(x, replace_whitespace=False, fix_sentence_endings=True)
|
|
|
4 |
import gradio as gr
|
5 |
|
6 |
# Load a pre-trained chatbot model
|
7 |
+
chatbot = pipeline('text-generation', model='gpt2-large')
|
8 |
|
9 |
def wrap(x):
|
10 |
return textwrap.fill(x, replace_whitespace=False, fix_sentence_endings=True)
|