Firoj112 commited on
Commit
a3b8b2d
·
verified ·
1 Parent(s): 8cab688

Update GRADIO_UI.py

Browse files
Files changed (1) hide show
  1. GRADIO_UI.py +2 -14
GRADIO_UI.py CHANGED
@@ -2,17 +2,6 @@
2
  # coding=utf-8
3
  # Copyright 2024 The HuggingFace Inc. team. All rights reserved.
4
  #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
  import mimetypes
17
  import os
18
  import re
@@ -269,9 +258,8 @@ class GradioUI:
269
  type="messages",
270
  avatar_images=(
271
  None,
272
- "https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/communication/Alfred.png",
273
  ),
274
- resizable=True,
275
  scale=1,
276
  )
277
  if self.file_upload_folder is not None:
@@ -282,7 +270,7 @@ class GradioUI:
282
  [upload_file, file_uploads_log],
283
  [upload_status, file_uploads_log],
284
  )
285
- text_input = gr.Textbox(lines=1, label="Enter URL and request (e.g., https://github.com Click on Developers)")
286
  text_input.submit(
287
  self.log_user_message,
288
  [text_input, file_uploads_log],
 
2
  # coding=utf-8
3
  # Copyright 2024 The HuggingFace Inc. team. All rights reserved.
4
  #
 
 
 
 
 
 
 
 
 
 
 
5
  import mimetypes
6
  import os
7
  import re
 
258
  type="messages",
259
  avatar_images=(
260
  None,
261
+ "[invalid url, do not cite]"
262
  ),
 
263
  scale=1,
264
  )
265
  if self.file_upload_folder is not None:
 
270
  [upload_file, file_uploads_log],
271
  [upload_status, file_uploads_log],
272
  )
273
+ text_input = gr.Textbox(lines=1, label="Enter URL and request (e.g., [invalid url, do not cite] Click on Developers)")
274
  text_input.submit(
275
  self.log_user_message,
276
  [text_input, file_uploads_log],