Spaces:
Runtime error
Runtime error
Update app.py
#3
by
thilinabanda
- opened
app.py
CHANGED
@@ -79,6 +79,13 @@ additional_inputs=[
|
|
79 |
interactive=True,
|
80 |
info="Penalize repeated tokens",
|
81 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
]
|
83 |
|
84 |
|
|
|
79 |
interactive=True,
|
80 |
info="Penalize repeated tokens",
|
81 |
)
|
82 |
+
gr.Interface(
|
83 |
+
fn=generate,
|
84 |
+
inputs=[gr.Textbox(), gr.Chatbot(), *additional_inputs], # Inputs including chat history
|
85 |
+
outputs=gr.Textbox(), # Output the generated response
|
86 |
+
live=True
|
87 |
+
).launch(share=True) # This will provide a public link
|
88 |
+
|
89 |
]
|
90 |
|
91 |
|