first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
13
base/gradio/4.10.0/Dockerfile
Normal file
13
base/gradio/4.10.0/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM python:3.9-slim
|
||||
|
||||
RUN mkdir /app && pip install --no-cache-dir "gradio==4.10.0" "fastapi==0.112.4" "pydantic==2.8.2"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY app.py /app/app.py
|
||||
|
||||
EXPOSE 7860
|
||||
|
||||
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
||||
|
||||
CMD ["python", "app.py"]
|
9
base/gradio/4.10.0/app.py
Normal file
9
base/gradio/4.10.0/app.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import gradio as gr
|
||||
|
||||
def greet(name):
|
||||
return f"Hello {name}!"
|
||||
|
||||
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
||||
|
||||
if __name__ == "__main__":
|
||||
iface.launch(server_name="0.0.0.0", server_port=7860)
|
13
base/gradio/4.12.0/Dockerfile
Normal file
13
base/gradio/4.12.0/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM python:3.9-slim
|
||||
|
||||
RUN mkdir /app && pip install --no-cache-dir "gradio==4.12.0" "fastapi==0.112.4" "pydantic==2.8.2"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY app.py /app/app.py
|
||||
|
||||
EXPOSE 7860
|
||||
|
||||
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
||||
|
||||
CMD ["python", "app.py"]
|
9
base/gradio/4.12.0/app.py
Normal file
9
base/gradio/4.12.0/app.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import gradio as gr
|
||||
|
||||
def greet(name):
|
||||
return f"Hello {name}!"
|
||||
|
||||
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
||||
|
||||
if __name__ == "__main__":
|
||||
iface.launch(server_name="0.0.0.0", server_port=7860)
|
Reference in New Issue
Block a user