File size: 357 Bytes
c484fda
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from app import SmartAgentApp

app_instance = SmartAgentApp()

def predict(input_data):
    query = input_data.get("query", "")
    
    result = app_instance.run(query)
    
    return {
        "output": result
    }


def reset():
    global app_instance
    app_instance = SmartAgentApp()
    
    return {"status": "reset successful"}