Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -190,8 +190,8 @@ function custom(){
|
|
190 |
document.querySelector("div#prompt2 input").setAttribute("maxlength","38")
|
191 |
}
|
192 |
"""
|
193 |
-
|
194 |
-
with
|
195 |
result = []
|
196 |
with gr.Column(elem_id="col-container"):
|
197 |
gr.Markdown(f"""
|
@@ -243,5 +243,4 @@ with gr.Blocks(theme=gr.themes.Soft(),css=css,js=js,port=8000) as demo:
|
|
243 |
#return list( _ret(p1_en,p2_en) )
|
244 |
|
245 |
run_button.click(fn=_rets,inputs=[prompt,prompt2],outputs=result)
|
246 |
-
|
247 |
-
demo.queue().launch(server_port=7860)
|
|
|
190 |
document.querySelector("div#prompt2 input").setAttribute("maxlength","38")
|
191 |
}
|
192 |
"""
|
193 |
+
gradio_blocks = gr.Blocks(port=8000)
|
194 |
+
with gradio_blocks(theme=gr.themes.Soft(),css=css,js=js) as demo:
|
195 |
result = []
|
196 |
with gr.Column(elem_id="col-container"):
|
197 |
gr.Markdown(f"""
|
|
|
243 |
#return list( _ret(p1_en,p2_en) )
|
244 |
|
245 |
run_button.click(fn=_rets,inputs=[prompt,prompt2],outputs=result)
|
246 |
+
demo.queue().launch(server_port=7860)
|
|