Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,23 +53,23 @@ def calculator(intro, operator, outro):
|
|
53 |
if operator == "add":
|
54 |
output = generator2(intro) + generator3(outro)
|
55 |
title = intro + " " + outro
|
56 |
-
saved = AIMemory(title, output)
|
57 |
return output
|
58 |
elif operator == "subtract":
|
59 |
output = generator2(outro) + generator3(intro)
|
60 |
title = outro + " " + intro
|
61 |
-
saved = AIMemory(title, output)
|
62 |
output = output.replace(intro, "").replace(outro, "")
|
63 |
return output
|
64 |
elif operator == "multiply":
|
65 |
output = generator1(intro) + generator2(outro) + generator3(intro)
|
66 |
title = intro + " " + outro + " " + intro
|
67 |
-
saved = AIMemory(title, output)
|
68 |
return output
|
69 |
elif operator == "divide":
|
70 |
output = generator1(outro) + generator2(intro) + generator3(outro)
|
71 |
title = outro + " " + intro + " " + outro
|
72 |
-
saved = AIMemory(title, output)
|
73 |
output = output.replace(intro, "").replace(outro, "")
|
74 |
return output
|
75 |
|
|
|
53 |
if operator == "add":
|
54 |
output = generator2(intro) + generator3(outro)
|
55 |
title = intro + " " + outro
|
56 |
+
#saved = AIMemory(title, output)
|
57 |
return output
|
58 |
elif operator == "subtract":
|
59 |
output = generator2(outro) + generator3(intro)
|
60 |
title = outro + " " + intro
|
61 |
+
#saved = AIMemory(title, output)
|
62 |
output = output.replace(intro, "").replace(outro, "")
|
63 |
return output
|
64 |
elif operator == "multiply":
|
65 |
output = generator1(intro) + generator2(outro) + generator3(intro)
|
66 |
title = intro + " " + outro + " " + intro
|
67 |
+
#saved = AIMemory(title, output)
|
68 |
return output
|
69 |
elif operator == "divide":
|
70 |
output = generator1(outro) + generator2(intro) + generator3(outro)
|
71 |
title = outro + " " + intro + " " + outro
|
72 |
+
#saved = AIMemory(title, output)
|
73 |
output = output.replace(intro, "").replace(outro, "")
|
74 |
return output
|
75 |
|