mou3az commited on
Commit
485157e
1 Parent(s): fa6f281

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -448,7 +448,7 @@ def File_Interact(history, filepath, messages5):
448
  except Exception as e:
449
  error_message = str(e)
450
  start_index = error_message.find("Input validation error:")
451
- end_index = error_message.find("and 4096 max_new_tokens")
452
  if start_index != -1 and end_index != -1:
453
  raise gr.Error(error_message[start_index:end_index].strip()) from e
454
  else:
@@ -608,7 +608,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
608
  with gr.Column():
609
  with gr.Row():
610
  filepath = gr.UploadButton("Upload a file", file_count="single", scale=1)
611
- msg = gr.Textbox(show_label=False, placeholder="Type a message...", scale=7, container=False)
612
  submit = gr.Button("➡️Send", scale=1)
613
  with gr.Row():
614
  file_output = gr.HTML("<div style='height: 20px; width: 30px;'></div>")
 
448
  except Exception as e:
449
  error_message = str(e)
450
  start_index = error_message.find("Input validation error:")
451
+ end_index = error_message.find("and 4096 `max_new_tokens`")
452
  if start_index != -1 and end_index != -1:
453
  raise gr.Error(error_message[start_index:end_index].strip()) from e
454
  else:
 
608
  with gr.Column():
609
  with gr.Row():
610
  filepath = gr.UploadButton("Upload a file", file_count="single", scale=1)
611
+ msg = gr.Textbox(show_label=False, placeholder="Please wait until the file is fully loaded, then type a message...", scale=7, container=False)
612
  submit = gr.Button("➡️Send", scale=1)
613
  with gr.Row():
614
  file_output = gr.HTML("<div style='height: 20px; width: 30px;'></div>")