Spaces:
Running
Running
trevorpfiz
commited on
Commit
·
dc751ef
1
Parent(s):
246c6a1
test python version change
Browse files- Dockerfile +1 -1
- src/vlm_playground/app.py +11 -8
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM ghcr.io/astral-sh/uv:python3.
|
2 |
|
3 |
ARG USERNAME=user
|
4 |
ARG USER_UID=1000
|
|
|
1 |
+
FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim
|
2 |
|
3 |
ARG USERNAME=user
|
4 |
ARG USER_UID=1000
|
src/vlm_playground/app.py
CHANGED
@@ -5,14 +5,17 @@ def greet(name: str) -> str:
|
|
5 |
return f"Hello {name}!!"
|
6 |
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
15 |
|
16 |
|
17 |
if __name__ == "__main__":
|
18 |
-
|
|
|
5 |
return f"Hello {name}!!"
|
6 |
|
7 |
|
8 |
+
def run():
|
9 |
+
demo = gr.Interface(
|
10 |
+
fn=greet,
|
11 |
+
inputs="text",
|
12 |
+
outputs="text",
|
13 |
+
title="VLM Playground Gradio Demo",
|
14 |
+
description="Simple demo app to verify Gradio + uv Docker setup.",
|
15 |
+
)
|
16 |
+
|
17 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|
18 |
|
19 |
|
20 |
if __name__ == "__main__":
|
21 |
+
run()
|