Paridhim commited on
Commit
c1a93c3
1 Parent(s): 6ccb460

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -36,13 +36,10 @@ def generate_text(input_text):
36
 
37
  output = llm(input_text)
38
  print(output)
39
- cleaned_output_text = output_text.replace(input_text, "")
40
- return cleaned_output_text
41
 
42
 
43
  text_generation_interface = gr.Interface(
44
  fn=generate_text,
45
- inputs=[
46
- gr.inputs.Textbox(label="Input Text"),
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()