dlflannery commited on
Commit
e5dc535
·
verified ·
1 Parent(s): aec34f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -371,7 +371,7 @@ def new_conversation(user):
371
  for fpath in flist:
372
  if os.path.exists(fpath):
373
  os.remove(fpath)
374
- return [None, [], gr.Markdown(value='', label='Dialog'), gr.Image(visible=False, value=None), gr.Image(visible=False, value=None), '',
375
  gr.LinePlot(visible=False)]
376
 
377
  def updatePassword(txt):
@@ -516,7 +516,7 @@ def chat(prompt, user_window, pwd_window, past, response, gptModel, uploaded_ima
516
  sleep(3)
517
  if not accessOk:
518
  response += f"\nDATA LOG FAILED, path = {dataFile}"
519
- return [past, md(response) , None, gptModel, uploaded_image_file, plot]
520
  else:
521
  return [[], "User name and/or password are incorrect", prompt, gptModel, uploaded_image_file, plot]
522
 
@@ -901,7 +901,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
901
  submit_button = gr.Button(value="Submit Prompt/Question")
902
  speak_output = gr.Button(value="Speak Dialog", visible=False)
903
  prompt_window = gr.Textbox(label = "Prompt or Question")
904
- output_window = gr.Markdown(label = "Dialog")
905
  with gr.Row():
906
  with gr.Column():
907
  image_window2 = gr.Image(visible=False, interactive=True, label='Image to Analyze', type='filepath')
 
371
  for fpath in flist:
372
  if os.path.exists(fpath):
373
  os.remove(fpath)
374
+ return [None, [], gr.Markdown(value='', label='Dialog', container=True), gr.Image(visible=False, value=None), gr.Image(visible=False, value=None), '',
375
  gr.LinePlot(visible=False)]
376
 
377
  def updatePassword(txt):
 
516
  sleep(3)
517
  if not accessOk:
518
  response += f"\nDATA LOG FAILED, path = {dataFile}"
519
+ return [past, response , None, gptModel, uploaded_image_file, plot]
520
  else:
521
  return [[], "User name and/or password are incorrect", prompt, gptModel, uploaded_image_file, plot]
522
 
 
901
  submit_button = gr.Button(value="Submit Prompt/Question")
902
  speak_output = gr.Button(value="Speak Dialog", visible=False)
903
  prompt_window = gr.Textbox(label = "Prompt or Question")
904
+ output_window = gr.Markdown(label = "Dialog", container=True)
905
  with gr.Row():
906
  with gr.Column():
907
  image_window2 = gr.Image(visible=False, interactive=True, label='Image to Analyze', type='filepath')