jezthejirzaman commited on
Commit
dbbd8c8
·
1 Parent(s): 00a3f05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -603,14 +603,10 @@ t.save(myTransformer.state_dict(), "toInfer.pt")
603
  # About a month after making this I realized this should be online. I'll push this to gradio
604
 
605
  # %%
606
- import gradio as gr
607
-
608
- gr.themes.builder()
609
 
 
610
 
611
- theme = gr.themes.Base()
612
 
613
- with gr.Blocks(theme=theme) as demo:
614
 
615
  def speak(input, tokenLength):
616
  print("-------------------------------------------")
@@ -627,7 +623,7 @@ def speak(input, tokenLength):
627
 
628
 
629
  model = gr.Interface(fn=speak,
630
-
631
  inputs=[gr.Textbox(label = "initial text", placeholder="To be or not to be"), gr.Slider(20, 40, step=1, value=40)],
632
  outputs="text",
633
  title = "speak shakespeare, speak!",
@@ -639,3 +635,4 @@ model.launch(share=False)
639
 
640
 
641
 
 
 
603
  # About a month after making this I realized this should be online. I'll push this to gradio
604
 
605
  # %%
 
 
 
606
 
607
+ import gradio as gr
608
 
 
609
 
 
610
 
611
  def speak(input, tokenLength):
612
  print("-------------------------------------------")
 
623
 
624
 
625
  model = gr.Interface(fn=speak,
626
+ css="custom_theme.css"
627
  inputs=[gr.Textbox(label = "initial text", placeholder="To be or not to be"), gr.Slider(20, 40, step=1, value=40)],
628
  outputs="text",
629
  title = "speak shakespeare, speak!",
 
635
 
636
 
637
 
638
+