tamatwi commited on
Commit
546a17c
·
verified ·
1 Parent(s): c55adbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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/DiscoPOP-zephyr-7b-gemma", torch_dtype=torch.float16, low_cpu_mem_usage=True)
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)