-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use filetype for better type detection in GradIO #569
base: main
Are you sure you want to change the base?
Use filetype for better type detection in GradIO #569
Conversation
4a7cfcb
to
e8f20f6
Compare
e8f20f6
to
2349ff7
Compare
@sysradium feel free to continue work on this PR now that #342 is merged! |
Thanks. I will introduce tests as well. |
532d4fa
to
234c5f6
Compare
@aymeric-roucher added tests. |
|
||
def tearDown(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove this method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it is no-longer needed. Each test receives its own file_upload_dir
, tmpdir
fixture which are automatically wiped out by pytest itself.
@@ -20,7 +20,7 @@ dependencies = [ | |||
"pillow>=11.0.0", | |||
"markdownify>=0.14.1", | |||
"duckduckgo-search>=6.3.7", | |||
"python-dotenv" | |||
"python-magic>=0.4.27,<0.5.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is adding this import really necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is needed if we want to use python-magic for filetype detection. If we don't want then the most of the pr is pointless.
38a7643
to
4e8c077
Compare
4e8c077
to
5d53b81
Compare
An attempt to fix #566