Sakalti commited on
Commit
b37cb74
·
verified ·
1 Parent(s): 03c245f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -49
app.py CHANGED
@@ -69,55 +69,7 @@ def chat_interface(room_name, rooms, message, history, system_message, max_token
69
  def main():
70
  rooms = load_rooms()
71
  room_names = list(rooms.keys())
72
- css = """
73
- body {
74
- background-color: #1e1e1e;
75
- color: #ffffff;
76
- }
77
- .gradio-container {
78
- background-color: #2e2e2e;
79
- color: #ffffff;
80
- }
81
- .gradio-chatbot {
82
- background-color: #3e3e3e;
83
- color: #ffffff;
84
- }
85
- .gradio-chatbot .message.user {
86
- background-color: #4e4e4e;
87
- color: #ffffff;
88
- padding: 10px;
89
- border-radius: 5px;
90
- margin: 5px 0;
91
- }
92
- .gradio-chatbot .message.assistant {
93
- background-color: #5e5e5e;
94
- color: #ffffff;
95
- padding: 10px;
96
- border-radius: 5px;
97
- margin: 5px 0;
98
- }
99
- .gradio-dropdown, .gradio-textbox, .gradio-slider, .gradio-button {
100
- background-color: #3e3e3e;
101
- color: #ffffff;
102
- border: 1px solid #4e4e4e;
103
- }
104
- .gradio-dropdown option, .gradio-textbox input, .gradio-slider input, .gradio-button button {
105
- background-color: #3e3e3e;
106
- color: #ffffff;
107
- border: 1px solid #4e4e4e;
108
- }
109
- .gradio-button button {
110
- background-color: #5e5e5e;
111
- color: #ffffff;
112
- border: 1px solid #6e6e6e;
113
- }
114
- .gradio-button button:hover {
115
- background-color: #6e6e6e;
116
- color: #ffffff;
117
- border: 1px solid #7e7e7e;
118
- }
119
- """
120
- with gr.Blocks(css=css) as demo:
121
  with gr.Row():
122
  with gr.Column():
123
  room_name_dropdown = gr.Dropdown(room_names, label="会話部屋", value=room_names[0] if room_names else None)
 
69
  def main():
70
  rooms = load_rooms()
71
  room_names = list(rooms.keys())
72
+ with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  with gr.Row():
74
  with gr.Column():
75
  room_name_dropdown = gr.Dropdown(room_names, label="会話部屋", value=room_names[0] if room_names else None)