()
| 69 | |
| 70 | |
| 71 | def main(): |
| 72 | st.title('🦜🔗 Quickstart App') |
| 73 | |
| 74 | init_upload_dir() |
| 75 | init_sidebar() |
| 76 | init_proxy() |
| 77 | init_openai_limit() |
| 78 | tag, res = upload_and_process_document() |
| 79 | |
| 80 | if tag == 1: |
| 81 | [docs] = res |
| 82 | fileGPT = FileGPT() |
| 83 | fileID = fileGPT.add_file(docs=docs) |
| 84 | file_chat(fileID) |
| 85 | elif tag == 2: |
| 86 | [sql_url, sql_username, sql_password] = res |
| 87 | # fileGPT = FileGPT() |
| 88 | elif tag == 3: |
| 89 | [code_url] = res |
| 90 | # fileGPT = FileGPT() |
| 91 | elif tag == 4: |
| 92 | pass |
| 93 | # [text] = res |
| 94 | # fileGPT = FileGPT() |
| 95 | else: |
| 96 | file_chat() |
| 97 | |
| 98 | |
| 99 | if __name__ == '__main__': |
no test coverage detected