openfree commited on
Commit
a3b8f2f
1 Parent(s): b45e256

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -175,7 +175,7 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css, title="EveryChat
175
  chatbot = gr.Chatbot(
176
  height=600,
177
  label="Chat Interface 💬",
178
- type="messages" # 경고 해결을 위해 type 지정
179
  )
180
  msg = gr.Textbox(
181
  label="Type your message",
@@ -184,7 +184,7 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css, title="EveryChat
184
  container=False
185
  )
186
  with gr.Row():
187
- clear = gr.ClearButton([msg, chatbot]) # label 제거
188
  send = gr.Button("Send 📤")
189
 
190
  with gr.Column(scale=1):
@@ -195,9 +195,9 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css, title="EveryChat
195
  info="Choose your preferred AI model"
196
  )
197
 
 
198
  file_upload = gr.File(
199
- label="Upload File 📁",
200
- info="Support: Text, Code, CSV, Parquet files",
201
  file_types=["text", ".csv", ".parquet"],
202
  type="filepath"
203
  )
@@ -220,7 +220,7 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css, title="EveryChat
220
  [msg]
221
  )
222
 
223
- send.click( # 전송 버튼 이벤트 추가
224
  chat,
225
  inputs=[msg, chatbot, file_upload, model_name, system_message, max_tokens, temperature, top_p],
226
  outputs=[msg, chatbot],
 
175
  chatbot = gr.Chatbot(
176
  height=600,
177
  label="Chat Interface 💬",
178
+ type="messages"
179
  )
180
  msg = gr.Textbox(
181
  label="Type your message",
 
184
  container=False
185
  )
186
  with gr.Row():
187
+ clear = gr.ClearButton([msg, chatbot])
188
  send = gr.Button("Send 📤")
189
 
190
  with gr.Column(scale=1):
 
195
  info="Choose your preferred AI model"
196
  )
197
 
198
+ gr.Markdown("### Upload File 📁\nSupport: Text, Code, CSV, Parquet files")
199
  file_upload = gr.File(
200
+ label="Upload File",
 
201
  file_types=["text", ".csv", ".parquet"],
202
  type="filepath"
203
  )
 
220
  [msg]
221
  )
222
 
223
+ send.click(
224
  chat,
225
  inputs=[msg, chatbot, file_upload, model_name, system_message, max_tokens, temperature, top_p],
226
  outputs=[msg, chatbot],