Spaces:
Paused
Paused
Commit
·
8c66aa9
1
Parent(s):
d408232
Update main.py
Browse files
main.py
CHANGED
@@ -4,9 +4,6 @@ from transformers import pipeline
|
|
4 |
|
5 |
app = FastAPI()
|
6 |
|
7 |
-
pipe_flan = pipeline("text2text-generation", model="google/flan-t5-small")
|
8 |
-
|
9 |
@app.get("/")
|
10 |
-
def index(
|
11 |
-
output
|
12 |
-
return {"output": output[0]["generated_text"]}
|
|
|
4 |
|
5 |
app = FastAPI()
|
6 |
|
|
|
|
|
7 |
@app.get("/")
|
8 |
+
def index():
|
9 |
+
return {"output": "Hello world!"}
|
|