anonICPC commited on
Commit
a7a97e6
·
verified ·
1 Parent(s): 1dced82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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=greet, inputs=[
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