Update app.py
Browse files
app.py
CHANGED
|
@@ -61,10 +61,10 @@ with gr.Blocks(title="Qwen 14b") as demo: # Updated title
|
|
| 61 |
)
|
| 62 |
gr.on(
|
| 63 |
triggers=[
|
| 64 |
-
|
| 65 |
],
|
| 66 |
# api_name="generate", # Add this line
|
| 67 |
-
fn=
|
| 68 |
inputs=[
|
| 69 |
prompt,
|
| 70 |
],
|
|
|
|
| 61 |
)
|
| 62 |
gr.on(
|
| 63 |
triggers=[
|
| 64 |
+
run_button.click,
|
| 65 |
],
|
| 66 |
# api_name="generate", # Add this line
|
| 67 |
+
fn=generate_code,
|
| 68 |
inputs=[
|
| 69 |
prompt,
|
| 70 |
],
|