awacke1 commited on
Commit
2d8d102
·
1 Parent(s): 045337f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -63,9 +63,9 @@ def calculator(text1, operation, text2, contextText):
63
  saved = AIMemory(text1 + " " + text2, output)
64
  return output.replace(text1, "").replace(text2, "")
65
 
66
- with open('Mindfulness.txt', 'r') as file:
67
- context = file.read()
68
- contextBox = gr.Textbox(lines=3, default=context, label="Story starter")
69
 
70
  examples = [
71
  ["Music and art make me feel", "add", "mindful"],
@@ -89,7 +89,7 @@ demo = gr.Interface(
89
  gr.Radio(["add", "subtract", "multiply", "divide"]),
90
  "text"
91
  ],
92
- "text",
93
  examples=examples,
94
  live=True,
95
  )
 
63
  saved = AIMemory(text1 + " " + text2, output)
64
  return output.replace(text1, "").replace(text2, "")
65
 
66
+ #with open('Mindfulness.txt', 'r') as file:
67
+ # context = file.read()
68
+ #contextBox = gr.Textbox(lines=3, default=context, label="Story starter")
69
 
70
  examples = [
71
  ["Music and art make me feel", "add", "mindful"],
 
89
  gr.Radio(["add", "subtract", "multiply", "divide"]),
90
  "text"
91
  ],
92
+ #"text",
93
  examples=examples,
94
  live=True,
95
  )