PinoCorgi commited on
Commit
2f74638
Β·
1 Parent(s): 8e315a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -61,10 +61,11 @@ class Solution(object):
61
  stack.append(char)
62
  return not stack
63
  """
64
-
 
65
  iface = gr.Interface(
66
  fn=find_similar_questions,
67
- inputs=gr.inputs.Textbox(lines=20, label="Enter a Code Example", value = s_example),
68
  outputs=gr.outputs.Textbox(label="Similar Questions on Leetcode"),
69
  title="πŸ“’ DSASearch Engine πŸ€–",
70
  description="Find similar questions on Leetcode based on a code example.",
 
61
  stack.append(char)
62
  return not stack
63
  """
64
+ ip_textbox = gr.inputs.Textbox(lines=20, label="Enter a Code Example")
65
+ ip_textbox.value = s_example
66
  iface = gr.Interface(
67
  fn=find_similar_questions,
68
+ inputs=ip_textbox,
69
  outputs=gr.outputs.Textbox(label="Similar Questions on Leetcode"),
70
  title="πŸ“’ DSASearch Engine πŸ€–",
71
  description="Find similar questions on Leetcode based on a code example.",