Files
patchy631--ai-engineering-hub/fastest-rag-milvus-groq/start_server.py
T
2026-07-13 12:37:47 +08:00

20 lines
468 B
Python

from beam import Image, Pod
streamlit_server = Pod(
image=Image().add_python_packages([
"streamlit",
"pymilvus",
"llama-index",
"llama-index-embeddings-huggingface",
"llama-index-llms-groq"
]),
ports=[8501], # Default port for streamlit
# cpu=4,
gpu="T4",
memory="2Gi",
entrypoint=["streamlit", "run", "app.py"],
)
res = streamlit_server.create()
print("✨ Streamlit server hosted at:", res.url)