Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Archi Back
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIL-A3-2024
UE-Proj
Archi Back
Commits
59cec853
Commit
59cec853
authored
1 month ago
by
BIRK Renaud
Browse files
Options
Downloads
Patches
Plain Diff
fix: CORS header
parent
bae90de1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
requirements.txt
+1
-0
1 addition, 0 deletions
requirements.txt
src/main.py
+5
-0
5 additions, 0 deletions
src/main.py
src/routes/router.py
+1
-1
1 addition, 1 deletion
src/routes/router.py
with
7 additions
and
1 deletion
requirements.txt
+
1
−
0
View file @
59cec853
Flask
>=2.0.3
flask-cors
>=5.0.1
dotenv
>=0.9.9
gradio_client
>=1.7.0
pydantic
>=1.8.2
...
...
This diff is collapsed.
Click to expand it.
src/main.py
+
5
−
0
View file @
59cec853
from
dotenv
import
load_dotenv
from
flask
import
Flask
from
flask_cors
import
CORS
from
routes.router
import
setup_routes
load_dotenv
()
app
=
Flask
(
__name__
)
CORS
(
app
)
app
.
config
[
'
CORS_HEADERS
'
]
=
'
Content-Type
'
setup_routes
(
app
)
if
__name__
==
'
__main__
'
:
...
...
This diff is collapsed.
Click to expand it.
src/routes/router.py
+
1
−
1
View file @
59cec853
...
...
@@ -11,7 +11,7 @@ glb_controller = GlbController()
render_controller
=
RenderController
()
suggest_controller
=
SuggestController
()
def
setup_routes
(
app
):
def
setup_routes
(
app
):
@app.route
(
'
/glb
'
,
methods
=
[
'
GET
'
])
# Image to model
def
get_glb
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment