seawolf2357 commited on
Commit
4f58458
·
verified ·
1 Parent(s): 8ef414b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -121,13 +121,14 @@ examples = [
121
  ["Huggingface와 Gradio를 사용하는 방법에 대해 물어보세요.", []]
122
  ]
123
 
124
- demo = gr.Interface(
 
125
  fn=generate,
126
- chatbot=mychatbot,
127
- inputs=[gr.Textbox(label="질문을 입력하세요", placeholder="여기에 질문을 입력하세요...", lines=2), gr.JSON(label="History", value=[])],
128
- outputs=gr.Markdown(),
129
- examples=examples,
130
  title="AIQ 코드파일럿: OpenLLM v1.12",
 
 
 
131
  )
132
 
133
- demo.launch(show_api=False)
 
121
  ["Huggingface와 Gradio를 사용하는 방법에 대해 물어보세요.", []]
122
  ]
123
 
124
+
125
+ demo = gr.ChatInterface(
126
  fn=generate,
127
+ chatbot=mychatbot,
 
 
 
128
  title="AIQ 코드파일럿: OpenLLM v1.12",
129
+ retry_btn=None,
130
+ undo_btn=None,
131
+ examples=examples
132
  )
133
 
134
+ demo.queue().launch(show_api=False)