Spaces:
Paused
Paused
Abid
commited on
Commit
•
5dc6bd9
1
Parent(s):
16b0e1a
requrement corrected
Browse files- Dockerfile +4 -4
- app/app_savta.py +6 -2
- heroku.yml +0 -5
Dockerfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
FROM python:3.9.10
|
2 |
|
3 |
-
EXPOSE
|
4 |
|
5 |
WORKDIR /app
|
6 |
|
@@ -13,7 +13,7 @@ COPY /examples /examples
|
|
13 |
|
14 |
COPY setup.sh setup.sh
|
15 |
|
16 |
-
ENV GRADIO_SERVER_NAME=0.0.0.0
|
17 |
-
ENV GRADIO_SERVER_PORT="$PORT"
|
18 |
|
19 |
-
CMD python
|
|
|
1 |
FROM python:3.9.10
|
2 |
|
3 |
+
EXPOSE 7860
|
4 |
|
5 |
WORKDIR /app
|
6 |
|
|
|
13 |
|
14 |
COPY setup.sh setup.sh
|
15 |
|
16 |
+
#ENV GRADIO_SERVER_NAME=0.0.0.0
|
17 |
+
#ENV GRADIO_SERVER_PORT="$PORT"
|
18 |
|
19 |
+
CMD ["python", "app.py"]
|
app/app_savta.py
CHANGED
@@ -21,7 +21,11 @@ def sepia(input_img):
|
|
21 |
sepia_img /= sepia_img.max()
|
22 |
return sepia_img
|
23 |
|
|
|
|
|
24 |
|
25 |
-
iface
|
|
|
26 |
|
27 |
-
|
|
|
|
21 |
sepia_img /= sepia_img.max()
|
22 |
return sepia_img
|
23 |
|
24 |
+
def main():
|
25 |
+
iface = gr.Interface(sepia, gr.inputs.Image(shape=(200, 200)), "image", title = title, description = description, article = article, examples = examples,theme ="peach",thumbnail=thumbnail)
|
26 |
|
27 |
+
iface.launch(favicon_path=favicon,auth=("admin", "dagshubsota123"),server_name="0.0.0.0")
|
28 |
+
# enable_queue=True,auth=("admin", "pass1234")
|
29 |
|
30 |
+
if __name__ == '__main__':
|
31 |
+
main()
|
heroku.yml
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
build:
|
2 |
-
docker:
|
3 |
-
web: Dockerfile
|
4 |
-
run:
|
5 |
-
web: bash /setup.sh && python /app/app_savta.py
|
|
|
|
|
|
|
|
|
|
|
|