Comments (2)
So apparently this app is running a python server using the Flask framework. On windows machines Flask looks at the registry to get its mime type for javascript files. Windows by default in the registry treats javascript as text/plain. So to fix this issue just drop in this code in the app.py file
See here for more details
https://stackoverflow.com/questions/59355194/python-flask-error-failed-to-load-module-script-strict-mime-type-checking-i
fix windows registry stuff
import mimetypes
mimetypes.add_type('application/javascript', '.js')
mimetypes.add_type('text/css', '.css')
from azure-search-openai-demo.
I added :
mimetypes.add_type('application/javascript', '.js')
mimetypes.add_type('text/css', '.css')
from azure-search-openai-demo.
Related Issues (20)
- gunicorn HOT 1
- Not able to use chat feature when logged in HOT 4
- ChatApp citation responses that show .docx document types don't appear in the citation window HOT 1
- Backup Strategy for PDF/Vector/Embeddings Database in Azure
- show follow up questions for older messages
- Chat App doesn't give correct answer HOT 2
- deleting the index HOT 2
- Azure Data Lake Storage Gen2 Setup - no data ingested using prepdocs.ps1
- Understand file structure in blob storage HOT 4
- Answer won't search global content blob HOT 1
- Connect user with their Onedrive/Sharepoint data HOT 3
- openai.error.AuthenticationError: Principal does not have access to API/Operation HOT 1
- How to make user uploaded files globally available to all the users using ChatApp. HOT 2
- suggestions for ways to give access to resources in main storage HOT 1
- Setting up optional login HOT 3
- Should `AAD` be changed to `Azure Entra ID`? HOT 2
- Deleting The "ASK" tab HOT 1
- Search resource fails in swedencentral HOT 1
- Use "evaluation app" when the login is required in the "chat app" HOT 2
- Advanced RAG
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-search-openai-demo.