Update app.py
Browse files
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=
|
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.",
|