ML610 commited on
Commit
ca52a2a
1 Parent(s): 5b5e8fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ example_2 = "Write a python script which prints 'you are logged in' only if the
74
  examples = [example_1, example_2]
75
 
76
  UI = gr.Interface(
77
- fn=generate,
78
  inputs=gr.Textbox(label="user_prompt", placeholder="Ask your queries here...."),
79
  outputs=gr.Textbox(label="Assistant"),
80
  title=title,
 
74
  examples = [example_1, example_2]
75
 
76
  UI = gr.Interface(
77
+ fn=lambda user_prompt: generate(llm, generation_config, user_prompt),
78
  inputs=gr.Textbox(label="user_prompt", placeholder="Ask your queries here...."),
79
  outputs=gr.Textbox(label="Assistant"),
80
  title=title,