Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,13 +30,14 @@ with gr.Blocks() as app:
|
|
30 |
with gr.Row():
|
31 |
with gr.Column():
|
32 |
|
33 |
-
input_textbox = gr.Textbox(lines=5, placeholder="Enter
|
|
|
34 |
with gr.Column():
|
35 |
|
36 |
-
translated_textbox = gr.Textbox(lines=5, placeholder="", label="
|
37 |
info_label = gr.HTML("")
|
38 |
btn = gr.Button("GetNow")
|
39 |
-
btn.click(run_lora, inputs=[input_textbox],outputs=[translated_textbox])
|
40 |
|
41 |
app.queue()
|
42 |
app.launch()
|
|
|
30 |
with gr.Row():
|
31 |
with gr.Column():
|
32 |
|
33 |
+
input_textbox = gr.Textbox(lines=5, placeholder="Enter key", label="Input Text")
|
34 |
+
input_sitebox = gr.Textbox(lines=5, placeholder="Enter site", label="Site Text")
|
35 |
with gr.Column():
|
36 |
|
37 |
+
translated_textbox = gr.Textbox(lines=5, placeholder="", label="Result Text")
|
38 |
info_label = gr.HTML("")
|
39 |
btn = gr.Button("GetNow")
|
40 |
+
btn.click(run_lora, inputs=["site:" + input_sitebox +" " + input_textbox],outputs=[translated_textbox])
|
41 |
|
42 |
app.queue()
|
43 |
app.launch()
|