adpro commited on
Commit
9c7a056
·
verified ·
1 Parent(s): 393c1ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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 text to translate", label="Input Text")
 
34
  with gr.Column():
35
 
36
- translated_textbox = gr.Textbox(lines=5, placeholder="", label="Translated Text")
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()