gehaustein commited on
Commit
b57b028
·
1 Parent(s): 3dba7e3
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,8 +33,8 @@ with gr.Blocks() as interface:
33
  gr.Markdown("# Text Classification with SetFit")
34
  gr.Markdown("Enter a sentence and get it classified into 'Ablehnung', 'Neutral', or 'Befürwortung'.")
35
 
36
- # Input text box with multiline set to False to avoid Shift+Enter issue
37
- text_input = gr.Textbox(lines=2, placeholder="Enter your text here...", multiline=False)
38
 
39
  # Submit button
40
  submit_btn = gr.Button("Submit")
 
33
  gr.Markdown("# Text Classification with SetFit")
34
  gr.Markdown("Enter a sentence and get it classified into 'Ablehnung', 'Neutral', or 'Befürwortung'.")
35
 
36
+ # Input text box set for single-line input
37
+ text_input = gr.Textbox(lines=1, placeholder="Enter your text here...") # Single-line input
38
 
39
  # Submit button
40
  submit_btn = gr.Button("Submit")