bert_test / app.py
ENOCTA's picture
Update app.py
a3b74b3 verified
raw
history blame contribute delete
488 Bytes
import streamlit as st
from transformers import pipeline
# Load the model from another account
model_repo_id = "dbmdz/bert-base-turkish-cased" # Replace with the actual model ID
model_pipeline = pipeline("text-classification", model=model_repo_id) # Replace "task-name" with the appropriate task
st.title("Model Demo with Hugging Face Spaces")
user_input = st.text_input("Enter your input here:")
if user_input:
result = model_pipeline(user_input)
st.write("Output:", result)