Spaces:
Runtime error
Runtime error
Commit
·
e8eca0c
1
Parent(s):
af61944
Atualiza app e questions to folder
Browse files- app.py +2 -2
- questions.json → app/questions.json +0 -0
app.py
CHANGED
@@ -3,10 +3,10 @@ from transformers import pipeline
|
|
3 |
import json
|
4 |
|
5 |
app = FastAPI()
|
6 |
-
medgemma = pipeline("text-generation", model="
|
7 |
|
8 |
# Carregar JSON como base
|
9 |
-
with open("questions.json", "r") as f:
|
10 |
questions_base = json.load(f)
|
11 |
|
12 |
@app.get("/generate")
|
|
|
3 |
import json
|
4 |
|
5 |
app = FastAPI()
|
6 |
+
medgemma = pipeline("text-generation", model="/app/fine_tuned_medgemma", tokenizer="/app/fine_tuned_medgemma")
|
7 |
|
8 |
# Carregar JSON como base
|
9 |
+
with open("/app/questions.json", "r") as f:
|
10 |
questions_base = json.load(f)
|
11 |
|
12 |
@app.get("/generate")
|
questions.json → app/questions.json
RENAMED
File without changes
|