sundea commited on
Commit
5f6b17a
·
1 Parent(s): ef16cf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -22
app.py CHANGED
@@ -319,30 +319,11 @@ h1 {
319
  }
320
  """
321
 
322
- html = """
323
- <div class="container">
324
- <h1>Text Classification</h1>
325
- <div class="gradio-interface">
326
- <div class="input-group">
327
- <label class="input-label">Input Text</label>
328
- <div class="input-description">Enter the text that you want to classify:</div>
329
- <input type="text" class="gradio-input" placeholder="Enter your text here" id="input_text">
330
- </div>
331
- <button type="button" class="gradio-button" id="classify_button">Classify</button>
332
- <div class="output-group">
333
- <label class="output-label">Classification Result</label>
334
- <div class="output-description">The predicted class is:</div>
335
- <div class="gradio-output" id="output_text"></div>
336
- </div>
337
- </div>
338
- </div>
339
- """
340
-
341
  iface = gr.Interface(fn=greet, inputs="text", outputs="text", title="Text Classification App",
342
- layout="unaligned", description="This is a demo for text classification.", css=css,
343
- allow_screenshot=False, allow_flagging=False, allow_share=False, allow_download=False,
344
  examples=[["今天天气真好"], ["这个手机真不错"], ["新冠疫情对经济的影响"]])
345
 
346
- iface.launch(html=html)
347
 
348
 
 
319
  }
320
  """
321
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
322
  iface = gr.Interface(fn=greet, inputs="text", outputs="text", title="Text Classification App",
323
+ description="This is a demo for text classification.", css=css,
324
+
325
  examples=[["今天天气真好"], ["这个手机真不错"], ["新冠疫情对经济的影响"]])
326
 
327
+ iface.launch()
328
 
329