faizah2512 commited on
Commit
2e443bc
·
verified ·
1 Parent(s): b44b4c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -31
app.py CHANGED
@@ -37,38 +37,8 @@ def respond(
37
 
38
  demo = gr.ChatInterface(
39
  respond,
40
- additional_inputs=[
41
- gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
42
- gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
43
- gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
44
- gr.Slider(
45
- minimum=0.1,
46
- maximum=1.0,
47
- value=0.95,
48
- step=0.05,
49
- label="Top-p (nucleus sampling)",
50
- ),
51
- ],
52
- theme="default", # Applying the default theme
53
- css="""
54
- .container {
55
- background-color: black !important;
56
- color: white !important;
57
- }
58
- .message {
59
- color: white !important;
60
- }
61
- .input-box {
62
- background-color: #333 !important;
63
- color: white !important;
64
- }
65
- .btn {
66
- background-color: #555 !important;
67
- color: white !important;
68
- }
69
- """
70
  )
71
 
72
  if __name__ == "__main__":
73
  demo.launch()
74
-
 
37
 
38
  demo = gr.ChatInterface(
39
  respond,
40
+ theme='freddyaboulton/dracula_revamped'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  )
42
 
43
  if __name__ == "__main__":
44
  demo.launch()