Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ def generate_response(user_input, chat_history):
|
|
| 35 |
outputs = model.generate(
|
| 36 |
inputs.input_ids,
|
| 37 |
max_length=len(inputs.input_ids[0]) + max_response_length, # Limit the maximum length for context and response
|
| 38 |
-
min_length
|
| 39 |
temperature=0.7, # Slightly higher temperature for more diverse responses
|
| 40 |
top_k=30,
|
| 41 |
top_p=0.9, # Allow a bit more randomness
|
|
@@ -76,4 +76,4 @@ with gr.Blocks() as chat_interface:
|
|
| 76 |
outputs=[chatbox, chat_history]
|
| 77 |
)
|
| 78 |
|
| 79 |
-
chat_interface.launch()
|
|
|
|
| 35 |
outputs = model.generate(
|
| 36 |
inputs.input_ids,
|
| 37 |
max_length=len(inputs.input_ids[0]) + max_response_length, # Limit the maximum length for context and response
|
| 38 |
+
min_length=45,
|
| 39 |
temperature=0.7, # Slightly higher temperature for more diverse responses
|
| 40 |
top_k=30,
|
| 41 |
top_p=0.9, # Allow a bit more randomness
|
|
|
|
| 76 |
outputs=[chatbox, chat_history]
|
| 77 |
)
|
| 78 |
|
| 79 |
+
chat_interface.launch(share=True)
|