braxtongough commited on
Commit
578c113
·
verified ·
1 Parent(s): 3976f87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  # Load your model from Hugging Face (for text generation)
5
- model = pipeline('text-generation', model='gpt2') # Replace with the model you want
6
 
7
  # Function to generate code (or text) based on user input
8
  def generate_code(input_text):
 
2
  from transformers import pipeline
3
 
4
  # Load your model from Hugging Face (for text generation)
5
+ model = pipeline('LLM', model='gpt2') # Replace with the model you want
6
 
7
  # Function to generate code (or text) based on user input
8
  def generate_code(input_text):