nikhmr1235 commited on
Commit
054e6c6
·
verified ·
1 Parent(s): f6f31a0

fix for chatinterface not being visible post successful PDF upload

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,7 +58,7 @@ class PDFChatbot:
58
 
59
  return (
60
  gr.update(interactive=False),
61
- gr.update(visible=True)
62
  )
63
  except Exception as e:
64
  if os.path.exists(self.state.vector_store_path):
@@ -66,7 +66,7 @@ class PDFChatbot:
66
  gr.Error(f"An error occurred: {str(e)}")
67
  return (
68
  gr.update(interactive=True),
69
- gr.update(visible=False)
70
  )
71
 
72
  def chat_with_pdf(self, message, history):
 
58
 
59
  return (
60
  gr.update(interactive=False),
61
+ gr.Group.update(visible=True)
62
  )
63
  except Exception as e:
64
  if os.path.exists(self.state.vector_store_path):
 
66
  gr.Error(f"An error occurred: {str(e)}")
67
  return (
68
  gr.update(interactive=True),
69
+ gr.Group.update(visible=False)
70
  )
71
 
72
  def chat_with_pdf(self, message, history):