Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,4 @@
|
|
1 |
import random
|
2 |
-
import uuid
|
3 |
-
import json
|
4 |
-
|
5 |
import gradio as gr
|
6 |
import numpy as np
|
7 |
import spaces
|
@@ -143,7 +140,7 @@ with gr.Blocks(css=css) as demo:
|
|
143 |
)
|
144 |
|
145 |
gr.on(
|
146 |
-
triggers=[prompt.submit,
|
147 |
fn=infer,
|
148 |
inputs=[
|
149 |
prompt,
|
|
|
1 |
import random
|
|
|
|
|
|
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
import spaces
|
|
|
140 |
)
|
141 |
|
142 |
gr.on(
|
143 |
+
triggers=[prompt.submit,run_button.click],
|
144 |
fn=infer,
|
145 |
inputs=[
|
146 |
prompt,
|