Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
model_id = "
|
5 |
-
|
|
|
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):
|