Spaces:
Runtime error
Runtime error
damilojohn
commited on
Commit
Β·
17256a2
1
Parent(s):
6a69ba8
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import torch
|
|
6 |
|
7 |
|
8 |
tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
|
9 |
-
Model = EncoderDecoderModel.from_pretrained('
|
10 |
def descramble(prompt):
|
11 |
input = tokenizer(prompt,return_tensors='pt')
|
12 |
input_id = input.input_ids
|
@@ -48,8 +48,7 @@ with demo:
|
|
48 |
with gr.Column():
|
49 |
gr.Markdown(
|
50 |
'''
|
51 |
-
##
|
52 |
-
anything you see take it like that
|
53 |
''')
|
54 |
find_answer.click(
|
55 |
fn=descramble,
|
|
|
6 |
|
7 |
|
8 |
tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
|
9 |
+
Model = EncoderDecoderModel.from_pretrained('Bert2BertForTextDescrambling')
|
10 |
def descramble(prompt):
|
11 |
input = tokenizer(prompt,return_tensors='pt')
|
12 |
input_id = input.input_ids
|
|
|
48 |
with gr.Column():
|
49 |
gr.Markdown(
|
50 |
'''
|
51 |
+
## Under Construction β³,
|
|
|
52 |
''')
|
53 |
find_answer.click(
|
54 |
fn=descramble,
|