Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ def respond(message, chat_history, instruction, temperature=0.7):
|
|
| 50 |
yield "", chat_history
|
| 51 |
acc_text = ""
|
| 52 |
|
| 53 |
-
iface = gr.Interface(fn=respond, inputs=[gr.Textbox(label="Prompt"), gr.
|
| 54 |
|
| 55 |
if __name__ == "__main__":
|
| 56 |
iface.launch()
|
|
|
|
| 50 |
yield "", chat_history
|
| 51 |
acc_text = ""
|
| 52 |
|
| 53 |
+
iface = gr.Interface(fn=respond, inputs=[gr.Textbox(label="Prompt"), gr.Chatbot(label="Chat History", height=240), gr.Textbox(label="System message", lines=2, value="A conversation between a user and an LLM-based AI assistant. The assistant gives helpful and honest answers."), gr.Slider(label="temperature", minimum=0.1, maximum=1, value=0.7, step=0.1)], outputs=[gr.Textbox(label="Prompt"), gr.Chatbot(label="Chat History", height=240)])
|
| 54 |
|
| 55 |
if __name__ == "__main__":
|
| 56 |
iface.launch()
|