Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,5 +5,6 @@ app = FastAPI()
|
|
| 5 |
|
| 6 |
@app.post("/generate_script")
|
| 7 |
async def generate_script_endpoint(user_input: str):
|
|
|
|
| 8 |
script = generate_script(user_input)
|
| 9 |
-
return {"script": script}
|
|
|
|
| 5 |
|
| 6 |
@app.post("/generate_script")
|
| 7 |
async def generate_script_endpoint(user_input: str):
|
| 8 |
+
print("Received user input:", user_input) # Add this line to verify the endpoint call
|
| 9 |
script = generate_script(user_input)
|
| 10 |
+
return {"script": script}
|