Hello guys,
I fine-tuned a GPT2 model on some stable diffusion text and I’m trying to create a Gradio space for it but I’m getting this error. The code is mentioned below:-
import gradio as gr
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("rexoscare/sd-prompt-generator-gpt-2")
model = AutoModelForCausalLM.from_pretrained("rexoscare/sd-prompt-generator-gpt-2")
input_1 = gr.components.Textbox(placeholder= 'Enter your prompt here...', label = 'Auto Generate Prompt', show_label= True)
iface = gr.Interface(model, inputs= input_1, outputs = 'text', theme = 'huggingface')
iface.launch()
Can somebody please help me with this?