Spaces:
Sleeping
Sleeping
fix for chatinterface not being visible post successful PDF upload
Browse files
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):
|