Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ app=FastAPI()
|
|
7 |
# Initialize the text generation pipeline
|
8 |
#pipe = pipeline("text2text-generation", model="google/flan-t5-small")
|
9 |
#pipe = pipeline("text-generation", model="openai-community/gpt2")
|
10 |
-
pipe=pipeline("text-generation", model="
|
11 |
|
12 |
@app.get("/")
|
13 |
def home():
|
|
|
7 |
# Initialize the text generation pipeline
|
8 |
#pipe = pipeline("text2text-generation", model="google/flan-t5-small")
|
9 |
#pipe = pipeline("text-generation", model="openai-community/gpt2")
|
10 |
+
pipe=pipeline("text-generation", model="HuggingFaceTB/SmolLM2-1.7B-Instruct")
|
11 |
|
12 |
@app.get("/")
|
13 |
def home():
|