You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When uploading certain file types the mime types are not recognized.
Incorrect:
Markdown .md
ERROR: defaults to application/octect-stream
Python .py
ERROR: App crashes
File "C:\Users\haze\CheersGPT\.venv\Lib\site-packages\engineio\base_server.py", line 229, in _get_socket
raise KeyError('Session is disconnected')
KeyError: 'Session is disconnected'
Add local user.py to chat and ask "Summarize This"
Expected behavior
Mime type is correct and app doesn't crash. Maybe if mime.guess returns the default application/octet-stream it can then infer based on the file extension in some cases?
Desktop (please complete the following information):
OS: Windows 11
Browser Microsoft Edge
Version Chainlit 1.1.0rc1
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
When uploading certain file types the mime types are not recognized.
Incorrect:
.md
application/octect-stream
.py
Correct:
.csv
,.xlsx
,docx
,.pdf
,.pptx
config.toml
app.py
terminal (Markdown error)
To Reproduce
Steps to reproduce the behavior:
Markdown:
Python:
Expected behavior
Mime type is correct and app doesn't crash. Maybe if mime.guess returns the default
application/octet-stream
it can then infer based on the file extension in some cases?Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: