update imports
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import json
|
|
2 |
import re
|
3 |
import unicodedata
|
4 |
from typing import Tuple
|
|
|
5 |
|
6 |
import gradio as gr
|
7 |
import torch
|
@@ -482,6 +483,9 @@ def generateNorm219(sentence, history, max_len=12,
|
|
482 |
return ' '.join(response).replace('<bos>', '').replace('<eos>', '').strip()
|
483 |
|
484 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
485 |
with gr.Row():
|
486 |
gr.ChatInterface(generateNorm188,
|
487 |
title="NormalSeq2Seq-188M")
|
|
|
2 |
import re
|
3 |
import unicodedata
|
4 |
from typing import Tuple
|
5 |
+
import random
|
6 |
|
7 |
import gradio as gr
|
8 |
import torch
|
|
|
483 |
return ' '.join(response).replace('<bos>', '').replace('<eos>', '').strip()
|
484 |
|
485 |
with gr.Blocks() as demo:
|
486 |
+
gr.Markdown("""
|
487 |
+
# Seq2Seq Generative Chatbot with 188M parameters
|
488 |
+
""")
|
489 |
with gr.Row():
|
490 |
gr.ChatInterface(generateNorm188,
|
491 |
title="NormalSeq2Seq-188M")
|