Spaces:
Sleeping
Sleeping
fix: changing the port and update the url API
Browse files- .idea/inspectionProfiles/profiles_settings.xml +6 -0
- .idea/misc.xml +7 -0
- .idea/modules.xml +8 -0
- .idea/nyc-taxi-ui.iml +8 -0
- .idea/vcs.xml +3 -1
- Dockerfile +2 -2
- main.py +2 -1
.idea/inspectionProfiles/profiles_settings.xml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<component name="InspectionProjectProfileManager">
|
2 |
+
<settings>
|
3 |
+
<option name="USE_PROJECT_PROFILE" value="false" />
|
4 |
+
<version value="1.0" />
|
5 |
+
</settings>
|
6 |
+
</component>
|
.idea/misc.xml
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="Black">
|
4 |
+
<option name="sdkName" value="Python 3.9" />
|
5 |
+
</component>
|
6 |
+
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
|
7 |
+
</project>
|
.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="ProjectModuleManager">
|
4 |
+
<modules>
|
5 |
+
<module fileurl="file://$PROJECT_DIR$/.idea/nyc-taxi-ui.iml" filepath="$PROJECT_DIR$/.idea/nyc-taxi-ui.iml" />
|
6 |
+
</modules>
|
7 |
+
</component>
|
8 |
+
</project>
|
.idea/nyc-taxi-ui.iml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<module type="PYTHON_MODULE" version="4">
|
3 |
+
<component name="NewModuleRootManager">
|
4 |
+
<content url="file://$MODULE_DIR$" />
|
5 |
+
<orderEntry type="inheritedJdk" />
|
6 |
+
<orderEntry type="sourceFolder" forTests="false" />
|
7 |
+
</component>
|
8 |
+
</module>
|
.idea/vcs.xml
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<project version="4">
|
3 |
-
<component name="VcsDirectoryMappings"
|
|
|
|
|
4 |
</project>
|
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<project version="4">
|
3 |
+
<component name="VcsDirectoryMappings">
|
4 |
+
<mapping directory="" vcs="Git" />
|
5 |
+
</component>
|
6 |
</project>
|
Dockerfile
CHANGED
@@ -10,6 +10,6 @@ RUN pip install -r ./requirements.txt
|
|
10 |
|
11 |
COPY ./main.py /code/
|
12 |
|
13 |
-
EXPOSE
|
14 |
|
15 |
-
CMD ["streamlit","run", "main.py"]
|
|
|
10 |
|
11 |
COPY ./main.py /code/
|
12 |
|
13 |
+
EXPOSE 7860
|
14 |
|
15 |
+
CMD ["streamlit","run", "main.py", "--server.port=7860"]
|
main.py
CHANGED
@@ -27,7 +27,8 @@ input_dict = user_input_features()
|
|
27 |
if st.button('Predict'):
|
28 |
response = requests.post(
|
29 |
#url="http://localhost:8000/predict",
|
30 |
-
url="http://nyc-taxi-model-container:8000/predict",
|
|
|
31 |
data=json.dumps(input_dict)
|
32 |
)
|
33 |
|
|
|
27 |
if st.button('Predict'):
|
28 |
response = requests.post(
|
29 |
#url="http://localhost:8000/predict",
|
30 |
+
#url="http://nyc-taxi-model-container:8000/predict",
|
31 |
+
url="https://zapatacc-nyc-taxi-model.hf.space/predict",
|
32 |
data=json.dumps(input_dict)
|
33 |
)
|
34 |
|