awacke1 commited on
Commit
10ffa47
·
1 Parent(s): 1af4d9f

Update app.py

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