trevorpfiz commited on
Commit
dc751ef
·
1 Parent(s): 246c6a1

test python version change

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. src/vlm_playground/app.py +11 -8
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
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
- demo = gr.Interface(
9
- fn=greet,
10
- inputs="text",
11
- outputs="text",
12
- title="VLM Playground Gradio Demo",
13
- description="Simple demo app to verify Gradio + uv Docker setup.",
14
- )
 
 
 
15
 
16
 
17
  if __name__ == "__main__":
18
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
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()