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