Update app.py
Browse files
app.py
CHANGED
@@ -36,13 +36,10 @@ def generate_text(input_text):
|
|
36 |
|
37 |
output = llm(input_text)
|
38 |
print(output)
|
39 |
-
|
40 |
-
return cleaned_output_text
|
41 |
|
42 |
|
43 |
text_generation_interface = gr.Interface(
|
44 |
fn=generate_text,
|
45 |
-
inputs=
|
46 |
-
|
47 |
-
],
|
48 |
-
outputs=gr.inputs.Textbox(label="Generated Text")).launch()
|
|
|
36 |
|
37 |
output = llm(input_text)
|
38 |
print(output)
|
39 |
+
return output
|
|
|
40 |
|
41 |
|
42 |
text_generation_interface = gr.Interface(
|
43 |
fn=generate_text,
|
44 |
+
inputs="text", outputs="text")
|
45 |
+
text_generation_interface.launch()
|
|
|
|