Spaces:
Sleeping
Sleeping
基于深度学习的DGA恶意域名检测
commited on
Commit
·
0470a03
1
Parent(s):
fccb965
test env variable & secret -v3
Browse files
main.py
CHANGED
@@ -18,10 +18,12 @@ print(secret)
|
|
18 |
@app.get("/infer_t5")
|
19 |
def t5(input):
|
20 |
output = pipe_flan(input)
|
21 |
-
return {"output": output[0]["generated_text"]}
|
|
|
|
|
22 |
|
23 |
app.mount("/", StaticFiles(directory="static", html=True), name="static")
|
24 |
|
25 |
@app.get("/")
|
26 |
def index() -> FileResponse:
|
27 |
-
return FileResponse(path="/app/static/
|
|
|
18 |
@app.get("/infer_t5")
|
19 |
def t5(input):
|
20 |
output = pipe_flan(input)
|
21 |
+
# return {"output": output[0]["generated_text"]}
|
22 |
+
return {"output": str(variable)+str(secret)}
|
23 |
+
|
24 |
|
25 |
app.mount("/", StaticFiles(directory="static", html=True), name="static")
|
26 |
|
27 |
@app.get("/")
|
28 |
def index() -> FileResponse:
|
29 |
+
return FileResponse(path="/app/static/index_bk.html", media_type="text/html")
|