Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ try:
|
|
27 |
except:
|
28 |
print("file not found")
|
29 |
|
30 |
-
def AIMemory(name: str, message: str):
|
31 |
if name and message:
|
32 |
with open(DATA_FILE, "a") as csvfile:
|
33 |
writer = csv.DictWriter(csvfile, fieldnames=["name", "message", "time"])
|
@@ -70,10 +70,10 @@ demo = gr.Interface(
|
|
70 |
[
|
71 |
"text",
|
72 |
gr.Radio(["add", "subtract", "multiply", "divide"]),
|
73 |
-
"text"
|
|
|
74 |
],
|
75 |
"text",
|
76 |
-
gr.Textbox(lines=3, default=context, label="Story starter"),
|
77 |
live=True,
|
78 |
)
|
79 |
demo.launch()
|
|
|
27 |
except:
|
28 |
print("file not found")
|
29 |
|
30 |
+
def AIMemory(name: str, message: str, context: str ):
|
31 |
if name and message:
|
32 |
with open(DATA_FILE, "a") as csvfile:
|
33 |
writer = csv.DictWriter(csvfile, fieldnames=["name", "message", "time"])
|
|
|
70 |
[
|
71 |
"text",
|
72 |
gr.Radio(["add", "subtract", "multiply", "divide"]),
|
73 |
+
"text",
|
74 |
+
gr.Textbox(lines=3, default=context, label="Story starter")
|
75 |
],
|
76 |
"text",
|
|
|
77 |
live=True,
|
78 |
)
|
79 |
demo.launch()
|