Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,6 @@ import random
|
|
41 |
|
42 |
def greet(X, ny):
|
43 |
global eng_dict
|
44 |
-
ny = int(ny)
|
45 |
if ny == 0:
|
46 |
rand_no = random.random()
|
47 |
tok_map = {2: 0.4363429005892416,
|
@@ -258,7 +257,7 @@ public class y {
|
|
258 |
textbox = gr.Textbox(label="Type Java code snippet:", placeholder="replace variable with [MASK]", lines=10)
|
259 |
#textbox1 = gr.Textbox(label="Number of tokens in name:", placeholder="0 for randomly sampled number of tokens",lines=1)
|
260 |
|
261 |
-
gr.Interface(title = title, description = description, examples = ex, fn=
|
262 |
textbox
|
263 |
], outputs="text").launch()
|
264 |
|
|
|
41 |
|
42 |
def greet(X, ny):
|
43 |
global eng_dict
|
|
|
44 |
if ny == 0:
|
45 |
rand_no = random.random()
|
46 |
tok_map = {2: 0.4363429005892416,
|
|
|
257 |
textbox = gr.Textbox(label="Type Java code snippet:", placeholder="replace variable with [MASK]", lines=10)
|
258 |
#textbox1 = gr.Textbox(label="Number of tokens in name:", placeholder="0 for randomly sampled number of tokens",lines=1)
|
259 |
|
260 |
+
gr.Interface(title = title, description = description, examples = ex, fn=meet, inputs=[
|
261 |
textbox
|
262 |
], outputs="text").launch()
|
263 |
|