Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
avivkri committed Aug 21, 2023
1 parent ff6ff91 commit 1b0325c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
5 changes: 5 additions & 0 deletions app-check.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import streamlit as st
import subprocess

packages = str(subprocess.run('pip list', capture_output=True))
st.markdown(packages.replace('\\r\\n', ' \\\n'))
11 changes: 11 additions & 0 deletions polyaxonfiles/app-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 1.1
kind: component
name: plx-streamlit-huggingface-app
tags: [streamlit, huggingface]
run:
kind: service
ports: [8501]
rewritePath: true
container:
image: avivkri/polyaxon-examples:plx-streamlit-huggingface-app
command: [streamlit, run, app-check.py]
1 change: 0 additions & 1 deletion polyaxonfiles/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ run:
container:
image: avivkri/polyaxon-examples:plx-streamlit-huggingface-app
command: [streamlit, run, app.py]

3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
streamlit==1.25.0
transformers==4.31.0
transformers[tf-cpu]==4.31.0
typing-extensions
sentencepiece==0.1.99
tensorflow==2.13.0

0 comments on commit 1b0325c

Please sign in to comment.