Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,7 @@ from transformers import pipeline
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Initialize the text generation pipeline with optimizations
|
5 |
-
pipe = pipeline("text-generation", model="SakanaAI/
|
6 |
-
|
7 |
# Define a function to generate text based on user input
|
8 |
def generate_text(prompt):
|
9 |
result = pipe(prompt, max_length=50, num_return_sequences=1)
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Initialize the text generation pipeline with optimizations
|
5 |
+
pipe = pipeline("text-generation", model="SakanaAI/EvoLLM-JP-v1-7B")
|
|
|
6 |
# Define a function to generate text based on user input
|
7 |
def generate_text(prompt):
|
8 |
result = pipe(prompt, max_length=50, num_return_sequences=1)
|