BusinessDev commited on
Commit
7fe6107
·
verified ·
1 Parent(s): bce9f6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,8 +1,9 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- model_id = "meta-llama/Meta-Llama-3-8B" # You can replace this with any model of your choice
5
- generator = pipeline("text-generation", model=model_id)
 
6
 
7
  # Define the function to process the input and generate text
8
  def generate_text(prompt):
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ model_id = "google/gemma-2-9b" # You can replace this with any model of your choice
5
+
6
+ generator = pipeline("text-generation", model=model_id, token = access_token)
7
 
8
  # Define the function to process the input and generate text
9
  def generate_text(prompt):