wasmdashai commited on
Commit
167ff63
·
verified ·
1 Parent(s): aa40e0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -38,7 +38,8 @@ def t2seq(text, namn_model):
38
  out = ASGAI.Soft.Predict_ALL(text)
39
  return str(out)
40
  def echo(message, history):
41
- return message
 
42
 
43
 
44
  # Use Blocks
@@ -63,8 +64,10 @@ with gr.Blocks() as demo:
63
  submit_btn_seq.click(fn=t2seq, inputs=[text_input_seq, model_choices_seq], outputs=text_output_seq)
64
 
65
  with gr.Tab("T2Sinaro"):
 
66
  gr.ChatInterface(fn=echo, examples=["hello", "hola", "merhaba"], title="Echo Bot")
67
 
 
68
 
69
 
70
  with gr.Tab("Stute Base"):
 
38
  out = ASGAI.Soft.Predict_ALL(text)
39
  return str(out)
40
  def echo(message, history):
41
+ text=t2seq(message,"Group")
42
+ return text
43
 
44
 
45
  # Use Blocks
 
64
  submit_btn_seq.click(fn=t2seq, inputs=[text_input_seq, model_choices_seq], outputs=text_output_seq)
65
 
66
  with gr.Tab("T2Sinaro"):
67
+ model_choices_seq1 = gr.Dropdown(choices=["Group", "Technique", "Soft"], label="Model",value="Group",)
68
  gr.ChatInterface(fn=echo, examples=["hello", "hola", "merhaba"], title="Echo Bot")
69
 
70
+
71
 
72
 
73
  with gr.Tab("Stute Base"):