Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|