Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -105,13 +105,13 @@ for example in examples:
|
|
105 |
print(examples)
|
106 |
input_component_list=copy.deepcopy(common_input_component_list)
|
107 |
input_component_list.append(gr.Textbox(label="model", lines=3, value="untethered_model",visible=False))
|
108 |
-
|
109 |
interface_original = gr.Interface(fn=create_response,
|
110 |
title="original",
|
111 |
description="original language model, no fine tuning",
|
112 |
examples=examples,
|
113 |
inputs=input_component_list,
|
114 |
-
outputs=
|
115 |
)
|
116 |
examples = copy.deepcopy(common_examples)
|
117 |
print(examples)
|
@@ -120,13 +120,13 @@ for example in examples:
|
|
120 |
print(examples)
|
121 |
input_component_list=copy.deepcopy(common_input_component_list)
|
122 |
input_component_list.append(gr.Textbox(label="model", lines=3, value="untethered_paraphrased_model",visible=False))
|
123 |
-
|
124 |
interface_untethered_model = gr.Interface(fn=create_response,
|
125 |
title="untethered model",
|
126 |
description="language model fine tuned with'The Untethered Soul' chapter 17",
|
127 |
examples=examples,
|
128 |
inputs=input_component_list,
|
129 |
-
outputs=
|
130 |
)
|
131 |
|
132 |
examples = copy.deepcopy(common_examples)
|
@@ -134,12 +134,15 @@ print(examples)
|
|
134 |
for example in examples:
|
135 |
example.append("untethered_paraphrased_model")
|
136 |
print(examples)
|
|
|
|
|
|
|
137 |
interface_untethered_paraphrased_model = gr.Interface(fn=create_response,
|
138 |
title="untethered paraphrased_model",
|
139 |
description="language model fine tuned with'The Untethered Soul' chapter 17 paraphrased",
|
140 |
examples=examples,
|
141 |
inputs=input_component_list,
|
142 |
-
outputs=
|
143 |
)
|
144 |
|
145 |
|
|
|
105 |
print(examples)
|
106 |
input_component_list=copy.deepcopy(common_input_component_list)
|
107 |
input_component_list.append(gr.Textbox(label="model", lines=3, value="untethered_model",visible=False))
|
108 |
+
output_component_list = copy.deepcopy(common_output_component_list)
|
109 |
interface_original = gr.Interface(fn=create_response,
|
110 |
title="original",
|
111 |
description="original language model, no fine tuning",
|
112 |
examples=examples,
|
113 |
inputs=input_component_list,
|
114 |
+
outputs=output_component_list
|
115 |
)
|
116 |
examples = copy.deepcopy(common_examples)
|
117 |
print(examples)
|
|
|
120 |
print(examples)
|
121 |
input_component_list=copy.deepcopy(common_input_component_list)
|
122 |
input_component_list.append(gr.Textbox(label="model", lines=3, value="untethered_paraphrased_model",visible=False))
|
123 |
+
output_component_list = copy.deepcopy(common_output_component_list)
|
124 |
interface_untethered_model = gr.Interface(fn=create_response,
|
125 |
title="untethered model",
|
126 |
description="language model fine tuned with'The Untethered Soul' chapter 17",
|
127 |
examples=examples,
|
128 |
inputs=input_component_list,
|
129 |
+
outputs=output_component_list
|
130 |
)
|
131 |
|
132 |
examples = copy.deepcopy(common_examples)
|
|
|
134 |
for example in examples:
|
135 |
example.append("untethered_paraphrased_model")
|
136 |
print(examples)
|
137 |
+
input_component_list=copy.deepcopy(common_input_component_list)
|
138 |
+
input_component_list.append(gr.Textbox(label="model", lines=3, value="untethered_model",visible=False))
|
139 |
+
output_component_list = copy.deepcopy(common_output_component_list)
|
140 |
interface_untethered_paraphrased_model = gr.Interface(fn=create_response,
|
141 |
title="untethered paraphrased_model",
|
142 |
description="language model fine tuned with'The Untethered Soul' chapter 17 paraphrased",
|
143 |
examples=examples,
|
144 |
inputs=input_component_list,
|
145 |
+
outputs= output_component_list
|
146 |
)
|
147 |
|
148 |
|