hsuwill000 commited on
Commit
1183fc2
·
verified ·
1 Parent(s): 8750589

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -51,6 +51,12 @@ with gr.Blocks() as demo:
51
  )
52
  #chat_if.queue(api_open=True, max_size=1)
53
 
 
 
 
 
 
 
54
 
55
  if __name__ == "__main__":
56
  print("Launching Gradio app...")
 
51
  )
52
  #chat_if.queue(api_open=True, max_size=1)
53
 
54
+ chat_if2 = gr.Interface(
55
+ fn=respond,
56
+ inputs=gr.Textbox(label="Prompt", placeholder="請輸入訊息..."),
57
+ outputs=gr.Textbox(label="Response", interactive=False),
58
+ api_name="hc",
59
+ )
60
 
61
  if __name__ == "__main__":
62
  print("Launching Gradio app...")