caviri
commited on
Commit
·
5f58912
1
Parent(s):
1b605bf
ci: Testing HF
Browse files- Dockerfile +2 -1
- test.py +10 -0
Dockerfile
CHANGED
@@ -60,4 +60,5 @@ RUN pip3 install -r $HOME/digiwild/requirements.txt
|
|
60 |
|
61 |
#RUN chown -R user:user /digiwild/data /digiwild/app/assets
|
62 |
|
63 |
-
ENTRYPOINT ["python3", "/home/user/digiwild/app/main.py"]
|
|
|
|
60 |
|
61 |
#RUN chown -R user:user /digiwild/data /digiwild/app/assets
|
62 |
|
63 |
+
#ENTRYPOINT ["python3", "/home/user/digiwild/app/main.py"]
|
64 |
+
ENTRYPOINT [ "python3", "/home/user/digiwild/test.py" ]
|
test.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# app.py
|
2 |
+
import gradio as gr
|
3 |
+
|
4 |
+
def greet(name):
|
5 |
+
return f"Hello, {name}!"
|
6 |
+
|
7 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
8 |
+
|
9 |
+
if __name__ == "__main__":
|
10 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|