gorkemgoknar commited on
Commit
335a5a8
1 Parent(s): 621cc6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -1,4 +1,3 @@
1
- #from ctransformers import AutoModelForCausalLM
2
  import re, requests, json
3
  import gradio as gr
4
  import random
@@ -435,7 +434,9 @@ CONTEXT_CHOICES = ["talks friendly",
435
  "blames on something",
436
  "tries to save the world",
437
  "talks agressively",
438
- "argues over if a movie is good"]
 
 
439
 
440
  EXAMPLE_INITIALS=["I challenge you to battle of words!",
441
  "how much would a woodchuck chuck if a woodchuck could chuck wood?",
@@ -490,14 +491,15 @@ with gr.Blocks(css=css) as interface:
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])
500
  run_count = gr.components.Dropdown(RUN_COUNT,label="Line count per character",value="2")
 
501
  context_choice = gr.components.Dropdown(CONTEXT_CHOICES, label="Context",value=CONTEXT_CHOICES[0])
502
  with gr.Row():
503
  with_voice = gr.components.Dropdown(VOICE_CHOICES,label="Voice via Coqui.ai (demo)",value=VOICE_CHOICES[0])
 
 
1
  import re, requests, json
2
  import gradio as gr
3
  import random
 
434
  "blames on something",
435
  "tries to save the world",
436
  "talks agressively",
437
+ "argues over if a movie is good",
438
+ "sword insult fighting",
439
+ "inside a dark cavern"]
440
 
441
  EXAMPLE_INITIALS=["I challenge you to battle of words!",
442
  "how much would a woodchuck chuck if a woodchuck could chuck wood?",
 
491
  VOICE_COUNTER=gr.State(value=0)
492
  WITH_AUDIO=gr.State(value=1)
493
  VOICE_LIMIT=int( os.environ.get("VOICE_LIMIT") )
494
+ with gr.Row():
495
+ gr.HTML(TITLE, elem_id="banner")
496
+ gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
497
 
498
  with gr.Row():
499
  drop_char1 = gr.components.Dropdown(CHARACTER_1_CHOICES,label="Character 1",value=CHARACTER_1_CHOICES[0])
500
  drop_char2 = gr.components.Dropdown(CHARACTER_2_CHOICES,label="Character 2",value=CHARACTER_2_CHOICES[1])
501
  run_count = gr.components.Dropdown(RUN_COUNT,label="Line count per character",value="2")
502
+ with gr.Row():
503
  context_choice = gr.components.Dropdown(CONTEXT_CHOICES, label="Context",value=CONTEXT_CHOICES[0])
504
  with gr.Row():
505
  with_voice = gr.components.Dropdown(VOICE_CHOICES,label="Voice via Coqui.ai (demo)",value=VOICE_CHOICES[0])