gorkemgoknar commited on
Commit
621cc6f
1 Parent(s): 7d6cd92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -34,6 +34,13 @@ STOP_LIST=["###","##"]
34
  LLAMA_VERBOSE=False
35
 
36
 
 
 
 
 
 
 
 
37
  #stopping_criteria = StoppingCriteriaList([MaxLengthCriteria(max_length=64)])
38
 
39
  from huggingface_hub import hf_hub_download
@@ -483,7 +490,10 @@ with gr.Blocks(css=css) as interface:
483
  VOICE_COUNTER=gr.State(value=0)
484
  WITH_AUDIO=gr.State(value=1)
485
  VOICE_LIMIT=int( os.environ.get("VOICE_LIMIT") )
486
-
 
 
 
487
  with gr.Row():
488
  drop_char1 = gr.components.Dropdown(CHARACTER_1_CHOICES,label="Character 1",value=CHARACTER_1_CHOICES[0])
489
  drop_char2 = gr.components.Dropdown(CHARACTER_2_CHOICES,label="Character 2",value=CHARACTER_2_CHOICES[1])
 
34
  LLAMA_VERBOSE=False
35
 
36
 
37
+
38
+ TITLE = "<html> <head> <style> h1 {text-align: center;} </style> </head> <body> <h1> Movie Chatbot - Auto-Chatbot Powered by Coqui.ai XTTS 🐸</b> </body> </html>"
39
+
40
+ INTRODUCTION_TEXT = "Choose your characters, enter initial text see and hear (🐸) them talk. \
41
+ For voice there is per user and hourly limit, copy space and use your Coqui.ai token and voice_ids for your own usage.\
42
+ Additional hint, try French, Italian, German, Spanish initial texts."
43
+
44
  #stopping_criteria = StoppingCriteriaList([MaxLengthCriteria(max_length=64)])
45
 
46
  from huggingface_hub import hf_hub_download
 
490
  VOICE_COUNTER=gr.State(value=0)
491
  WITH_AUDIO=gr.State(value=1)
492
  VOICE_LIMIT=int( os.environ.get("VOICE_LIMIT") )
493
+
494
+ gr.HTML(TITLE, elem_id="banner")
495
+ gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
496
+
497
  with gr.Row():
498
  drop_char1 = gr.components.Dropdown(CHARACTER_1_CHOICES,label="Character 1",value=CHARACTER_1_CHOICES[0])
499
  drop_char2 = gr.components.Dropdown(CHARACTER_2_CHOICES,label="Character 2",value=CHARACTER_2_CHOICES[1])