ENOCTA commited on
Commit
a3b74b3
·
verified ·
1 Parent(s): de327be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -1,13 +1,13 @@
1
- import streamlit as st
2
- from transformers import pipeline
3
-
4
- # Load the model from another account
5
- model_repo_id = "dbmdz/bert-base-turkish-cased" # Replace with the actual model ID
6
- model_pipeline = pipeline("text-generation", model=model_repo_id) # Replace "task-name" with the appropriate task
7
-
8
- st.title("Model Demo with Hugging Face Spaces")
9
- user_input = st.text_input("Enter your input here:")
10
-
11
- if user_input:
12
- result = model_pipeline(user_input)
13
  st.write("Output:", result)
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+
4
+ # Load the model from another account
5
+ model_repo_id = "dbmdz/bert-base-turkish-cased" # Replace with the actual model ID
6
+ model_pipeline = pipeline("text-classification", model=model_repo_id) # Replace "task-name" with the appropriate task
7
+
8
+ st.title("Model Demo with Hugging Face Spaces")
9
+ user_input = st.text_input("Enter your input here:")
10
+
11
+ if user_input:
12
+ result = model_pipeline(user_input)
13
  st.write("Output:", result)