Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -142,8 +142,9 @@ def t2seq(text, namn_model):
|
|
142 |
out = ASGAI.Soft.Predict_ALL(text)
|
143 |
|
144 |
|
145 |
-
|
146 |
-
|
|
|
147 |
def echo(message, history):
|
148 |
|
149 |
text=t2seq(message,"Group")
|
@@ -203,7 +204,7 @@ with gr.Blocks() as demo:
|
|
203 |
|
204 |
with gr.Tab("T2Sinaro"):
|
205 |
model_choices_seq1 = gr.Dropdown(choices=["Group", "Technique", "Soft"], label="Model",value="Group",)
|
206 |
-
gr.ChatInterface(fn=echo,
|
207 |
|
208 |
|
209 |
|
|
|
142 |
out = ASGAI.Soft.Predict_ALL(text)
|
143 |
|
144 |
|
145 |
+
txt=format_cyber_response(text,str(out))
|
146 |
+
anwai=ask_wasm(txt)
|
147 |
+
return anwai
|
148 |
def echo(message, history):
|
149 |
|
150 |
text=t2seq(message,"Group")
|
|
|
204 |
|
205 |
with gr.Tab("T2Sinaro"):
|
206 |
model_choices_seq1 = gr.Dropdown(choices=["Group", "Technique", "Soft"], label="Model",value="Group",)
|
207 |
+
gr.ChatInterface(fn=echo, title="Echo Bot")
|
208 |
|
209 |
|
210 |
|