File size: 380 Bytes
b551a1c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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')