Spaces:
Runtime error
Runtime error
File size: 600 Bytes
af14fe8 61448a4 af14fe8 d1b8523 61448a4 d1b8523 af14fe8 d1b8523 af14fe8 61448a4 af14fe8 61448a4 af14fe8 61448a4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import streamlit as st
import pandas as pd
import home
import numpy as np
from PIL import Image
import requests
import transformers
import text2image
import tokenizers
from io import BytesIO
import streamlit as st
from transformers import CLIPModel
import clip
import torch
from transformers import (
VisionTextDualEncoderModel,
AutoFeatureExtractor,
AutoTokenizer
)
from transformers import AutoProcessor
st.sidebar.title("Explore our PLIP Demo")
PAGES = {
"Introduction": home,
"Text to Image": text2image,
}
page = st.sidebar.radio("", list(PAGES.keys()))
PAGES[page].app()
|