Update app.py
Browse files
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,
|
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 |
|