Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,6 @@ interface = gr.Interface(
|
|
127 |
fn=predict,
|
128 |
inputs=[
|
129 |
gr.Textbox(label="User input"),
|
130 |
-
gr.State(),
|
131 |
gr.Textbox("You are a helpful coding assistant", label="System prompt"),
|
132 |
gr.Slider(0, 1, 0.7, label="Temperature"),
|
133 |
gr.Slider(128, 2048, 1024, label="Max new tokens"),
|
@@ -139,7 +138,6 @@ interface = gr.Interface(
|
|
139 |
live=True,
|
140 |
)
|
141 |
|
142 |
-
# Remove the incorrect use of 'State' without corresponding output
|
143 |
interface.launch()
|
144 |
|
145 |
logger.debug("Chat interface initialized and launched")
|
|
|
127 |
fn=predict,
|
128 |
inputs=[
|
129 |
gr.Textbox(label="User input"),
|
|
|
130 |
gr.Textbox("You are a helpful coding assistant", label="System prompt"),
|
131 |
gr.Slider(0, 1, 0.7, label="Temperature"),
|
132 |
gr.Slider(128, 2048, 1024, label="Max new tokens"),
|
|
|
138 |
live=True,
|
139 |
)
|
140 |
|
|
|
141 |
interface.launch()
|
142 |
|
143 |
logger.debug("Chat interface initialized and launched")
|