Spaces:
Runtime error
Runtime error
fix: list object has no attribute _id
Browse files
app.py
CHANGED
|
@@ -145,7 +145,7 @@ chat_interface = gr.ChatInterface(
|
|
| 145 |
def evolve_text(textbox, additional_inputs):
|
| 146 |
|
| 147 |
possible_generation = "".join([x for x in generate(
|
| 148 |
-
|
| 149 |
temperature=0.9, max_new_tokens=10,
|
| 150 |
top_p=0.95, repetition_penalty=1.2,
|
| 151 |
seed=42,
|
|
@@ -165,7 +165,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
| 165 |
chatbot.like(vote, None, None)
|
| 166 |
|
| 167 |
#output = gr.Textbox(label="What you can expect coming:")
|
| 168 |
-
textbox.change(fn=evolve_text, inputs=[textbox
|
| 169 |
show_progress = False, status_tracker = None)
|
| 170 |
|
| 171 |
#textbox.render()
|
|
|
|
| 145 |
def evolve_text(textbox, additional_inputs):
|
| 146 |
|
| 147 |
possible_generation = "".join([x for x in generate(
|
| 148 |
+
textbox.value, "", "<|endoftext|>",
|
| 149 |
temperature=0.9, max_new_tokens=10,
|
| 150 |
top_p=0.95, repetition_penalty=1.2,
|
| 151 |
seed=42,
|
|
|
|
| 165 |
chatbot.like(vote, None, None)
|
| 166 |
|
| 167 |
#output = gr.Textbox(label="What you can expect coming:")
|
| 168 |
+
textbox.change(fn=evolve_text, inputs=[textbox],
|
| 169 |
show_progress = False, status_tracker = None)
|
| 170 |
|
| 171 |
#textbox.render()
|