namberino
commited on
Commit
·
822d3a0
1
Parent(s):
d7caddc
Oops
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import os
|
|
5 |
|
6 |
# IMPORT your FastAPI app object here. Change the import path to match your project.
|
7 |
# Example: from my_fastapi_app import app as fastapi_app
|
8 |
-
from
|
9 |
|
10 |
def call_generate(file_obj, topics: str, n_questions: int, difficulty: str, qtype: str):
|
11 |
client = TestClient(fastapi_app) # will trigger startup/lifespan handlers
|
|
|
5 |
|
6 |
# IMPORT your FastAPI app object here. Change the import path to match your project.
|
7 |
# Example: from my_fastapi_app import app as fastapi_app
|
8 |
+
from fastapi_app import app as fastapi_app # <-- adjust if filename/variable differs
|
9 |
|
10 |
def call_generate(file_obj, topics: str, n_questions: int, difficulty: str, qtype: str):
|
11 |
client = TestClient(fastapi_app) # will trigger startup/lifespan handlers
|