Job_Parser / app.py
anujkarn's picture
Create app.py
b551a1c verified
raw
history blame contribute delete
380 Bytes
import streamlit as st
from transformers import pipeline
try:
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe = pipeline("text-generation", model="deepseek-ai/deepseek-vl2-tiny", trust_remote_code=True)
response = pipe(messages)
except:
response = False
if response:
st.write('Model imported successfully')
print('Done')