Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,6 +43,11 @@ repo = Repository(
|
|
| 43 |
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
| 44 |
)
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
def calculator(text1, operation, text2):
|
| 47 |
if operation == "add":
|
| 48 |
return text1 + text2
|
|
|
|
| 43 |
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
| 44 |
)
|
| 45 |
|
| 46 |
+
#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 |
+
SplitterInputBox = gr.inputs.Textbox(lines=5, label="Enter a sentence to get another sentence.")
|
| 51 |
def calculator(text1, operation, text2):
|
| 52 |
if operation == "add":
|
| 53 |
return text1 + text2
|