Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def generate_response(model_name, message, chat_history):
|
|
17 |
input_text = message
|
18 |
response = model.generate(input_text, max_tokens=100)
|
19 |
chat_history.append((input_text, response))
|
20 |
-
return chat_history, response
|
21 |
|
22 |
# Create Gradio UI
|
23 |
with gr.Blocks() as demo:
|
|
|
17 |
input_text = message
|
18 |
response = model.generate(input_text, max_tokens=100)
|
19 |
chat_history.append((input_text, response))
|
20 |
+
return "", chat_history, response
|
21 |
|
22 |
# Create Gradio UI
|
23 |
with gr.Blocks() as demo:
|