Spaces:
Sleeping
Sleeping
Shane Weisz
commited on
Commit
·
aee4dab
1
Parent(s):
abd93c6
Use 10 beams for decoding
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ from response_generation import ResponseGenerator
|
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
DEFAULT_MODEL = "shaneweisz/DialoGPT-finetuned-gab-multiCONAN"
|
| 5 |
-
DECODING_CONFIG = {"max_new_tokens": 100, "min_new_tokens": 20, "no_repeat_ngram_size": 5, "num_beams":
|
| 6 |
|
| 7 |
TITLE = "Automatic Generation of Counterspeech to Fight Hate Speech"
|
| 8 |
DESCRIPTION = """
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
DEFAULT_MODEL = "shaneweisz/DialoGPT-finetuned-gab-multiCONAN"
|
| 5 |
+
DECODING_CONFIG = {"max_new_tokens": 100, "min_new_tokens": 20, "no_repeat_ngram_size": 5, "num_beams": 10}
|
| 6 |
|
| 7 |
TITLE = "Automatic Generation of Counterspeech to Fight Hate Speech"
|
| 8 |
DESCRIPTION = """
|