jezthejirzaman commited on
Commit
1e30fc8
·
1 Parent(s): 661f0c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -605,16 +605,8 @@ t.save(myTransformer.state_dict(), "toInfer.pt")
605
  # %%
606
  import gradio as gr
607
 
608
- import gradio as gr
609
-
610
- import gradio as gr
611
 
612
- theme = gr.themes.Base(
613
- font=[gr.themes.GoogleFont('K2D'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
614
- )
615
 
616
- with gr.Blocks(theme=theme) as demo:
617
- ...
618
 
619
  def speak(input, tokenLength):
620
  print("-------------------------------------------")
@@ -631,7 +623,7 @@ def speak(input, tokenLength):
631
 
632
 
633
  model = gr.Interface(fn=speak,
634
- theme = theme,
635
  inputs=[gr.Textbox(label = "initial text", placeholder="To be or not to be"), gr.Slider(1, 40, step=1, value=40)],
636
  outputs="text",
637
  title = "speak shakespeare, speak!",
 
605
  # %%
606
  import gradio as gr
607
 
 
 
 
608
 
 
 
 
609
 
 
 
610
 
611
  def speak(input, tokenLength):
612
  print("-------------------------------------------")
 
623
 
624
 
625
  model = gr.Interface(fn=speak,
626
+ theme = 'gstaff/xkcd',
627
  inputs=[gr.Textbox(label = "initial text", placeholder="To be or not to be"), gr.Slider(1, 40, step=1, value=40)],
628
  outputs="text",
629
  title = "speak shakespeare, speak!",