Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,5 +10,5 @@ def generate_text(inp):
|
|
10 |
output = tokenizer.decode(beam_output[0], skip_special_token=True, clean_up_tokenization_spaces=True)
|
11 |
return ".".join(output.split(".")[:-1]) + "."
|
12 |
|
13 |
-
output_text = gr.
|
14 |
gr.Interface(generate_text,"textbox",output_text,title="Text Generation machine ",description="Ask any question. Note: It can take 20-60 seconds to generate output based on your internet connection.").launch()
|
|
|
10 |
output = tokenizer.decode(beam_output[0], skip_special_token=True, clean_up_tokenization_spaces=True)
|
11 |
return ".".join(output.split(".")[:-1]) + "."
|
12 |
|
13 |
+
output_text = gr.Textbox()
|
14 |
gr.Interface(generate_text,"textbox",output_text,title="Text Generation machine ",description="Ask any question. Note: It can take 20-60 seconds to generate output based on your internet connection.").launch()
|