Update app.py
Browse files
app.py
CHANGED
@@ -59,36 +59,31 @@ def yn(x):
|
|
59 |
)
|
60 |
return result
|
61 |
|
62 |
-
|
63 |
-
aa = gr.Interface(
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
["Jill"],
|
91 |
-
["Sam"]
|
92 |
-
],
|
93 |
-
)
|
94 |
-
cc.launch()
|
|
|
59 |
)
|
60 |
return result
|
61 |
|
62 |
+
with gr.Blocks() as demo:
|
63 |
+
aa = gr.Interface(
|
64 |
+
fn=yn,
|
65 |
+
inputs="text",
|
66 |
+
outputs="text",
|
67 |
+
examples=[
|
68 |
+
["yes,no"]
|
69 |
+
],
|
70 |
+
)
|
71 |
+
|
72 |
+
bb = gr.Interface(
|
73 |
+
fn=chat,
|
74 |
+
inputs="text",
|
75 |
+
outputs="text",
|
76 |
+
examples=[
|
77 |
+
["chat"]
|
78 |
+
],
|
79 |
+
)
|
80 |
+
|
81 |
+
cc = gr.Interface(
|
82 |
+
fn=mbti,
|
83 |
+
inputs="text",
|
84 |
+
outputs="text",
|
85 |
+
examples=[
|
86 |
+
["mbti"]
|
87 |
+
],
|
88 |
+
)
|
89 |
+
demo.queue(max_size=32).launch(enable_queue=True)
|
|
|
|
|
|
|
|
|
|