⚠
️ DEPRECATED GITLAB INSTANCE
⚠
️ This GitLab is now read-only for reference. Please use
https://gitlab.iauro.co
for all new work.
Migration completed on September 17, 2025
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Pratiksha-Patil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pratiksha Patil
Pratiksha-Patil
Commits
0ca012dd
Commit
0ca012dd
authored
Jul 23, 2025
by
Pratiksha Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10th Assignment of fastapi streamlit Deployment
parent
309e6111
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
0 deletions
+26
-0
fastapi_streamlit_DEPLOYMENT_assignment/Dockerfile
fastapi_streamlit_DEPLOYMENT_assignment/Dockerfile
+4
-0
fastapi_streamlit_DEPLOYMENT_assignment/app/main.py
fastapi_streamlit_DEPLOYMENT_assignment/app/main.py
+7
-0
fastapi_streamlit_DEPLOYMENT_assignment/requirements.txt
fastapi_streamlit_DEPLOYMENT_assignment/requirements.txt
+4
-0
fastapi_streamlit_DEPLOYMENT_assignment/streamlit_app.py
fastapi_streamlit_DEPLOYMENT_assignment/streamlit_app.py
+11
-0
No files found.
fastapi_streamlit_DEPLOYMENT_assignment/Dockerfile
0 → 100644
View file @
0ca012dd
# Dockerfile for FastAPI
FROM
tiangolo/uvicorn-gunicorn-fastapi:python3.9
COPY
./app /app
fastapi_streamlit_DEPLOYMENT_assignment/app/main.py
0 → 100644
View file @
0ca012dd
from
fastapi
import
FastAPI
app
=
FastAPI
()
@
app
.
get
(
"/"
)
def
read_root
():
return
{
"message"
:
"Hello from FastAPI"
}
fastapi_streamlit_DEPLOYMENT_assignment/requirements.txt
0 → 100644
View file @
0ca012dd
fastapi
uvicorn
streamlit
requests
fastapi_streamlit_DEPLOYMENT_assignment/streamlit_app.py
0 → 100644
View file @
0ca012dd
import
streamlit
as
st
import
requests
st
.
title
(
"Streamlit + FastAPI"
)
if
st
.
button
(
"Call FastAPI"
):
response
=
requests
.
get
(
"http://localhost:8000"
)
if
response
.
status_code
==
200
:
st
.
success
(
response
.
json
()[
"message"
])
else
:
st
.
error
(
"Failed to reach FastAPI"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment