wasmdashai commited on
Commit
27eff0a
·
verified ·
1 Parent(s): 1325d7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -142,8 +142,9 @@ def t2seq(text, namn_model):
142
  out = ASGAI.Soft.Predict_ALL(text)
143
 
144
 
145
-
146
- return str(out)
 
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, examples=["hello", "hola", "merhaba"], title="Echo Bot")
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