awacke1 commited on
Commit
001698b
1 Parent(s): bb13c60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ generator1 = gr.Interface.load("huggingface/gpt2-large", api_key=HF_TOKEN)
47
  generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B", api_key=HF_TOKEN)
48
  generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B", api_key=HF_TOKEN)
49
 
50
- def calculator(text1, operation, text2, context):
51
  if operation == "add":
52
  output = generator1(text1) + generator2(text2)
53
  saved = AIMemory(text1 + " " + text2, output)
 
47
  generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B", api_key=HF_TOKEN)
48
  generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B", api_key=HF_TOKEN)
49
 
50
+ def calculator(text1, operation, text2, contextText):
51
  if operation == "add":
52
  output = generator1(text1) + generator2(text2)
53
  saved = AIMemory(text1 + " " + text2, output)