Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from transformers import pipeline
|
|
7 |
# Load the Hugging Face model (GPT-2 in this case)
|
8 |
@st.cache_resource
|
9 |
def load_model():
|
10 |
-
return pipeline("text-generation", model="
|
11 |
|
12 |
# Function to return the response from Hugging Face model
|
13 |
def load_answer(question):
|
|
|
7 |
# Load the Hugging Face model (GPT-2 in this case)
|
8 |
@st.cache_resource
|
9 |
def load_model():
|
10 |
+
return pipeline("text-generation", model="gpt-4o")
|
11 |
|
12 |
# Function to return the response from Hugging Face model
|
13 |
def load_answer(question):
|