Spaces:
Runtime error
Runtime error
Commit ·
2ee5663
1
Parent(s): 1ca6e55
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,11 +74,11 @@ def chatbot(input_text):
|
|
| 74 |
|
| 75 |
def main():
|
| 76 |
# Get file content from Google Drive
|
| 77 |
-
file_id = '
|
| 78 |
folder_content = get_google_drive_file(file_id)
|
| 79 |
|
| 80 |
# Construct the index using the Google Drive folder content
|
| 81 |
-
index = construct_index(folder_content)
|
| 82 |
|
| 83 |
iface = gr.Interface(fn=chatbot,
|
| 84 |
inputs=gr.components.Textbox(lines=7, label="Enter your text"),
|
|
@@ -89,4 +89,4 @@ def main():
|
|
| 89 |
iface.launch()
|
| 90 |
|
| 91 |
if __name__ == "__main__":
|
| 92 |
-
main()
|
|
|
|
| 74 |
|
| 75 |
def main():
|
| 76 |
# Get file content from Google Drive
|
| 77 |
+
file_id = 'your_file_id_here'
|
| 78 |
folder_content = get_google_drive_file(file_id)
|
| 79 |
|
| 80 |
# Construct the index using the Google Drive folder content
|
| 81 |
+
index = construct_index([folder_content]) # Note the square brackets around folder_content
|
| 82 |
|
| 83 |
iface = gr.Interface(fn=chatbot,
|
| 84 |
inputs=gr.components.Textbox(lines=7, label="Enter your text"),
|
|
|
|
| 89 |
iface.launch()
|
| 90 |
|
| 91 |
if __name__ == "__main__":
|
| 92 |
+
main()
|