vericudebuget commited on
Commit
19efcfa
·
verified ·
1 Parent(s): 6f0afff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -49,7 +49,9 @@ additional_inputs = [
49
  gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Penalize repeated tokens")
50
  ]
51
 
52
- gr.Interface.theme = gr.themes.Soft() # Apply the Soft theme
 
 
53
 
54
  gr.ChatInterface(
55
  fn=generate,
 
49
  gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Penalize repeated tokens")
50
  ]
51
 
52
+ # Apply the Soft theme
53
+
54
+ with gr.Blocks(theme=gr.themes.Soft()) as demo
55
 
56
  gr.ChatInterface(
57
  fn=generate,