awacke1 commited on
Commit
bb13c60
·
1 Parent(s): 1fe68aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -65,13 +65,15 @@ def calculator(text1, operation, text2, context):
65
  saved = AIMemory(text1 + " " + text2, output)
66
  return output.replace(text1, "").replace(text2, "")
67
 
 
 
68
  demo = gr.Interface(
69
  calculator,
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,
 
65
  saved = AIMemory(text1 + " " + text2, output)
66
  return output.replace(text1, "").replace(text2, "")
67
 
68
+ contextBox = gr.Textbox(lines=3, default=context, label="Story starter")
69
+
70
  demo = gr.Interface(
71
  calculator,
72
  [
73
  "text",
74
  gr.Radio(["add", "subtract", "multiply", "divide"]),
75
  "text",
76
+ contextBox,
77
  ],
78
  "text",
79
  live=True,