Skip to content

Commit

Permalink
Fix getting sources html for UserData upload
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed May 22, 2023
1 parent 8817ab5 commit 4d50f91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradio_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ def _update_user_db(file, db1, x, y, dbs=None, db_type=None, langchain_mode='Use
# NOTE we do not return db, because function call always same code path
# return dbs[langchain_mode], x, y
# db in this code path is updated in place
source_files_added = get_source_files(db1, exceptions=exceptions)
source_files_added = get_source_files(dbs[langchain_mode], exceptions=exceptions)
return x, y, source_files_added


Expand Down
4 changes: 4 additions & 0 deletions tests/test_manual_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ def test_no_db_dirs():

def test_upload_unsupported_file():
raise NotImplementedError("""MANUAL TEST FOR NOW -- e.g. json, ensure error correct and reasonable, no cascades""")


def test_upload_to_UserData_and_MyData():
raise NotImplementedError("""MANUAL TEST FOR NOW Upload to each when enabled, ensure no failures""")

0 comments on commit 4d50f91

Please sign in to comment.