Sandhya commited on
Commit
e58b884
·
1 Parent(s): 7912f7c

First Commit

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,9 +81,9 @@ def create_gradio_app():
81
  with gr.Row():
82
  model_id=gr.Textbox(label="MODEL ID", value="google/gemma-2-2b")
83
  user_input=gr.Textbox(label="Your Question",value="Ask something about the model card .....")
84
- chat=gr.Chatbot(label="chat")
85
  send=gr.Button("Ask")
86
- send.click(fn=chat_function,inputs=[user_input,chat,model_id],outputs=[chat,user_input])
 
87
  return demo
88
  gradio_app=create_gradio_app()
89
  app=gr.mount_gradio_app(app,gradio_app,path="/")
 
81
  with gr.Row():
82
  model_id=gr.Textbox(label="MODEL ID", value="google/gemma-2-2b")
83
  user_input=gr.Textbox(label="Your Question",value="Ask something about the model card .....")
 
84
  send=gr.Button("Ask")
85
+ output=gr.Markdown()
86
+ send.click(fn=chat_function,inputs=[user_input,model_id],outputs=output)
87
  return demo
88
  gradio_app=create_gradio_app()
89
  app=gr.mount_gradio_app(app,gradio_app,path="/")