Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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('
|
| 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):
|