usamasansi commited on
Commit
7568b97
·
verified ·
1 Parent(s): b046820

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -1,11 +1,8 @@
1
- import streamlit as st
2
- from transformers import AutoModelForCausalLM, AutoTokenizer
3
- import torch
4
 
5
- # Load your fine-tuned model and tokenizer from Hugging Face Hub
6
- model_name = "usamasansi/carsell_model" # Your Hugging Face model name
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
- model = AutoModelForCausalLM.from_pretrained(model_name)
9
 
10
  # Streamlit UI
11
  st.title("Car Selling Chatbot")
 
1
+ from transformers import AutoModel, AutoTokenizer
 
 
2
 
3
+ model_name = "usamasansi/carsell_model"
 
4
  tokenizer = AutoTokenizer.from_pretrained(model_name)
5
+ model = AutoModel.from_pretrained(model_name)
6
 
7
  # Streamlit UI
8
  st.title("Car Selling Chatbot")