Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
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)
|