tykiww commited on
Commit
0126659
·
verified ·
1 Parent(s): cbd48ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ def get_json_cfg():
16
  return config
17
 
18
  #print(get_json_cfg())
19
-
20
 
21
  def greet(model_name, prompt_template, name, dirname):
22
  return f"Hello {name}!! Using model: {model_name} with template: {prompt_template} and {dirname}"
@@ -35,7 +35,7 @@ with gr.Blocks() as demo:
35
  output = gr.Textbox(label="Output")
36
 
37
  greet_btn.click(fn=greet,
38
- inputs=[model_name, prompt_template, name_input, os.getcwd()],
39
  outputs=output)
40
 
41
 
 
16
  return config
17
 
18
  #print(get_json_cfg())
19
+ dirname = os.getcwd()
20
 
21
  def greet(model_name, prompt_template, name, dirname):
22
  return f"Hello {name}!! Using model: {model_name} with template: {prompt_template} and {dirname}"
 
35
  output = gr.Textbox(label="Output")
36
 
37
  greet_btn.click(fn=greet,
38
+ inputs=[model_name, prompt_template, name_input, dirname],
39
  outputs=output)
40
 
41