Delete app.py
Browse files
app.py
DELETED
|
@@ -1,14 +0,0 @@
|
|
| 1 |
-
from fastapi import FastAPI
|
| 2 |
-
from transformers import pipeline
|
| 3 |
-
app = FastAPI() # <- Make sure this line exists
|
| 4 |
-
# Use a pipeline as a high-level helper
|
| 5 |
-
from transformers import pipeline
|
| 6 |
-
|
| 7 |
-
messages = [
|
| 8 |
-
{"role": "user", "content": "Who are you?"},
|
| 9 |
-
]
|
| 10 |
-
pipe = pipeline("image-text-to-text", model="Qwen/Qwen2.5-VL-7B-Instruct")
|
| 11 |
-
pipe(messages)
|
| 12 |
-
@app.get("/")
|
| 13 |
-
def home():
|
| 14 |
-
return {"message": "FastAPI is running!"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|