Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -159,10 +159,13 @@ def application(callfunctions, callarguments):
|
|
159 |
def process_input(input_str):
|
160 |
if not input_str:
|
161 |
return "No input provided!"
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
|
|
|
|
|
|
166 |
|
167 |
def respond(
|
168 |
message,
|
|
|
159 |
def process_input(input_str):
|
160 |
if not input_str:
|
161 |
return "No input provided!"
|
162 |
+
try:
|
163 |
+
model_out = to_model(input_str)
|
164 |
+
funs, args = to_app(model_out)
|
165 |
+
output_obj = application(funs, args)
|
166 |
+
return output_obj
|
167 |
+
except Exception as e:
|
168 |
+
retrun f"Error: {str(e)}"
|
169 |
|
170 |
def respond(
|
171 |
message,
|