jezthejirzaman commited on
Commit
c566ad4
·
1 Parent(s): 1013b6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -604,6 +604,11 @@ t.save(myTransformer.state_dict(), "toInfer.pt")
604
 
605
  # %%
606
  import gradio as gr
 
 
 
 
 
607
  def speak(input, tokenLength):
608
  print("-------------------------------------------")
609
  print("input: " + input)
@@ -619,6 +624,7 @@ def speak(input, tokenLength):
619
 
620
 
621
  model = gr.Interface(fn=speak,
 
622
  inputs=[gr.Textbox(label = "initial text", placeholder="To be or not to be"), gr.Slider(40, 80, step=1, value=80)],
623
  outputs="text",
624
  title = "speak shakespeare, speak!",
 
604
 
605
  # %%
606
  import gradio as gr
607
+
608
+ theme = gr.themes.Base(
609
+ font=[gr.themes.GoogleFont('K2D'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
610
+ )
611
+
612
  def speak(input, tokenLength):
613
  print("-------------------------------------------")
614
  print("input: " + input)
 
624
 
625
 
626
  model = gr.Interface(fn=speak,
627
+ theme = theme,
628
  inputs=[gr.Textbox(label = "initial text", placeholder="To be or not to be"), gr.Slider(40, 80, step=1, value=80)],
629
  outputs="text",
630
  title = "speak shakespeare, speak!",